How to set velocity from connected Rigidbody?
Hello! I'm trying to implement custom vehicle physics.
In order to achieve this i'm using this setup: "MainBody" rigidbody + 4 connected (via fixed joints) "WheelSpring" rigidbodies.
I would like to change velocities of "WheelSpring" rigidbodies to affect MainBody behaviour.
For example, if MainBody slips sideways i would like to decrease velocities of WheelSprings to simmulate sideways friction of tires. Or i could stop vehicle body from falling through wheels by changing spring vertical velocity to zero when suspension string reached minimum compression.
The problem is - it doesnt work. I cant really affect other rigidbodies by changing velocity of any connected "childs" because it seems like Rigidbodies doesnt share their velocities with connected ones. At least with my implementation.
Is there some other way to achieve this goal?
Thanx for your time :)
Your answer
Follow this Question
Related Questions
Why Does Bounciness Affects Rigidbody Velocity? (SOLVED) 0 Answers
Counteracting rigidbody velocity using AddForce? 0 Answers
Rigidbody.velocity Movement code produce wildly different gravity interactions 0 Answers
AddForce instead of modyfing Velocity 4 Answers
,Two Similar Rigidbodies with velocity behaving differently 1 Answer