Jump to content

car sample setAxis10()


photo

Recommended Posts

Posted

image.png.5fa5956c45b9621d4893616a58e85525.pngimage.png.6b733570332376f4b8b3fde6bdc7592a.png

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?

Posted

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:

Posted

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.

Posted

@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.

Posted (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.

image.png.9289c73e4e80abf522da6444df723934.png

image.png.e64f71fd72595c969f298a6cab22867e.png

 

maybe , "which is body 0"  is same mean with "when body 0 is frame"???

If correct, I am sorry about my English.

 

Edited by dongju.jeong
×
×
  • Create New...