Hello,
I have a car model. I change just the x coordinate of the model in a while loop(y and z coordinates doesn't change). Although, every iteration of the while loop, the y and z coordinates changed.
In addition, I insert an angular speed for the joints of the wheels. but, the car doesn't move with the correct speed (by the equation Vx=omega*radius)
Why is this happened? How can I fix these situation?
Thanks for all,
Matan
object slipping on a plane & incorrect velocity
object slipping on a plane & incorrect velocity
Last edited by matansas on 19 Jul 2024, 15:15, edited 2 times in total.
Re: object slipping on a plane
Hello Matan,
so it seems your model is dynamically enabled, correct? So when changing its position via sim.setObjectPosition (for instance), you actually kind of teleport the model. Have a look at the demo scene related to teleporting a dynamic model in scenes/teleportDynamicModel.ttt.
Also, keep in mind that a dynamic model will/might slightly move/slip/shift, depending on the physics engine and how the model was designed. So errors will compound over time. See also design considerations 7&8 (when designing something dynamic)
Cheers
so it seems your model is dynamically enabled, correct? So when changing its position via sim.setObjectPosition (for instance), you actually kind of teleport the model. Have a look at the demo scene related to teleporting a dynamic model in scenes/teleportDynamicModel.ttt.
Also, keep in mind that a dynamic model will/might slightly move/slip/shift, depending on the physics engine and how the model was designed. So errors will compound over time. See also design considerations 7&8 (when designing something dynamic)
Cheers
Re: object slipping on a plane & incorrect velocity
In addition, I insert an angular speed for the joints of the wheels. but, the car doesn't move with the correct speed (by the equation Vx=omega*radius).
how can I fixed this?
thank all,
Matan Sason
how can I fixed this?
thank all,
Matan Sason