Simulating wheel physics with scripting

im wondering how to get wheel physics working with suspension all with a script since constraints can get really laggy with a lot of them.

i currently using spring constraints with cylindrical constraints to get the wheels working but it gets really laggy once 10-15 vehicles are on

i want something like this
(4) the tanmk game- Physics and Transmission Preview - YouTube

if anyone knows how to get started with this thing it would help me out. i know you could use motor6ds to get the wheels turning

Motor6D’s are used for animation if I’m not mistaken. Try experimenting with constraints, as that’s probably the best way to make a suspension.

Example:

i already been using constraints for months now but they will start to lag depending on how many there is

i want a way to do this all through a script

found a solution for movement but if anyone got the math for suspension tell me

found a solution not giving it away though

Just share the solution, someone else may need it in the future

3 Likes

Posting about a problem and expecting someone to help you find a solution - and then not posting the solution you’ve found is very anti productive. I’m struggling with the same issue, please could you share your findings?

6 Likes

Wants to learn but doesn’t want to share findings to help others learn :sob:

9 Likes