object slipping on a plane & incorrect velocity

Typically: "How do I... ", "How can I... " questions
Post Reply
matansas
Posts: 4
Joined: 03 Jun 2024, 10:30

object slipping on a plane & incorrect velocity

Post 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
Last edited by matansas on 19 Jul 2024, 15:15, edited 2 times in total.
coppelia
Site Admin
Posts: 10747
Joined: 14 Dec 2012, 00:25

Re: object slipping on a plane

Post 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
matansas
Posts: 4
Joined: 03 Jun 2024, 10:30

Re: object slipping on a plane & incorrect velocity

Post 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
Post Reply