dongju.jeong Posted February 14, 2019 Share Posted February 14, 2019 In code of the car sample, the setAxis10() function of Wheel joint is used , but Axis 11 is changed in the editor. Why does it happen? Link to comment
silent Posted February 14, 2019 Share Posted February 14, 2019 dongju.jeong Thanks for the info, but it looks like we can't reproduce this behavior in any sample. Maybe you selected wrong joint? If you have a small test scene - we would like to take a look at it. How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
dongju.jeong Posted February 15, 2019 Author Share Posted February 15, 2019 in car_00.cpp, car_02 sample code, setAxis10()function is used to joint[0] and joint[1]. in car_00,car_02 Editor, ObjectMeshDynamic_2 and ObjectMeshDynamic_3 node is front wheels. when I steering car(left,right), there's Axis 11 parameter is changed. Link to comment
silent Posted February 15, 2019 Share Posted February 15, 2019 dongju.jeong Thanks for the additional info. That's might be internal physics engine calculations running in realtime. We need some more time to find out. How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
thomalex Posted February 15, 2019 Share Posted February 15, 2019 @dongju.jeong This behaviour is correct. The body and the wheel have different local coordinates. When the joint's Axis 10 is set via code, it is treated in the frame's local coordinates, which corresponds to the wheel's Axis 11. Please, try selecting the car's body and the corresponding joint - you'll see the Axis 10 parameter changing. Thanks. Link to comment
dongju.jeong Posted February 15, 2019 Author Share Posted February 15, 2019 (edited) Why didn't you match the joint of the frame to the joint of the wheel? The document just states that Axis11 is the axis of rotation of the wheel when steering. I checked a few, when two objects were connected with a joint, things like Axis 0 and Axis 1 of the wheel point,suspension,hinge,ball etc are opposite depending on the criteria of each object. I was a little confused because the document states that Axis11 is the axis of the wheel rotation when steering. maybe , "which is body 0" is same mean with "when body 0 is frame"??? If correct, I am sorry about my English. Edited February 19, 2019 by dongju.jeong Link to comment
Recommended Posts