Page 1 of 1

object slipping on a plane & incorrect velocity

Posted: 17 Jul 2024, 14:51
by matansas
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

Re: object slipping on a plane

Posted: 19 Jul 2024, 15:01
by coppelia
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

Re: object slipping on a plane & incorrect velocity

Posted: 19 Jul 2024, 15:22
by matansas
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