- Home /
Rigidbody hover, bodies connected with joints should hover together.
Hello,
I am having trouble making some sort of "hover" rigidbody.
I have a couple of rigidbodies with different mass connected to eachother with a "fixed" joint. 1 of those rigidbodies will have a script that whould make them all hover [because they are connected] But somehow i cannot figure out the neccesary math to make them hover.
I have tried both: RB.AddForce(-Physics.gravity,ForceMode.Acceleration); RB.AddForce(-RB.velocity,ForceMode.VelocityChange);
But they wont hover it perfectly, and that is because there are other bodies connected to the hover body.
I cannot loop through them to get all the connected mass needed as those bodies can get destroyed at runtime, and they are not connected both ways.
Thank you in advance.
Regards
Allow for a little give and take.
$$anonymous$$ake a little routine that detects if the object is losing altitude and if it is, correct it by increasing the upward force. This will allow for adding of extra mass and could give a realistic feel to mass-loading the object.
Your answer
Follow this Question
Related Questions
Violent shaking when using position drive in Configurable Joints 1 Answer
Need Hinge Joint to interact with only one object, but still collide with others 0 Answers
How do I connect multiple spheres using joints and make a character? 1 Answer
Freezing Rotation and Joints (Swing / Rope) Physics Issues 1 Answer