Advertisement

visualizing wheel rotation using torque on force based car system

Started by October 25, 2022 02:02 PM
0 comments, last by IdleBrick 2 years ago

I was wondering if anyone has some good methods for visualizing wheel rotation using torque value. I Have tried a few different methods from this forum and a couple of others and most of the examples shown don't show much of the formula making it difficult to implement.

This is one method I found to somewhat works but the wheels seem to continue spinning

var net_torque = z_force * radius
net_torque += drive_torque

if abs(spin) < 5 and brake_torque > abs(net_torque):  spin = 0
   else:
       net_torque -= brake_torque * sign(spin)
       spin += delta * net_torque / wheel_moment

It would make my day if anyone could show me how they did it.

None

This topic is closed to new replies.

Advertisement