- Home /
How to make SpringJoint maxDistance absolute?
Hi, I am instantiating GameObjects at random positions at runtime. I am then adding SpringJoints between some of these GameObjects. After being instantiated at random positions, I want the GameObjects that are connected via SpringJoints to be 'catapulted' towards eachother based on the maxDistance that I set. This is not working because the maxDistance value is interpreted relative to the initial distance between GameObjects. Using a negative values gives an error.
Your answer
Follow this Question
Related Questions
VR Grapple hooks 1 Answer
Is spring joint possible with configurable joint? 0 Answers
Connecting SpringJoint2D to Rotating Rigidbody2D With Correct Anchor 0 Answers
Configurable Joint Spring and Dampen Values 0 Answers
Player freezes upon attaching a "connected body" to a hinge/distance joint 0 Answers