Jump to content

car sample setAxis10()


photo

Recommended Posts

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

@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

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
Link to comment
×
×
  • Create New...