- Home /
Rendering a spring joint
Helloh!
I am trying to make the spring joint constraint on a cube visible, that is I have a cube with a spring joint on it and want a line to be rendered between the joints anchor point and the center of the cube. It needs to be dynamic so the line follows the cubes movement.
I have experimented with a Line Renderer on the object but cannot get the second 'element' to dynamically follow or read the cubes vector position.
Any help would be greatly appreciated!!
Answer by operand · Jun 13, 2011 at 08:33 AM
I've since figured this problem out for myself by using this as a guide: http://forum.unity3d.com/threads/34614-Line-Renderer-Newbie
I removed the last 3 points+positions and also added a few conditions to prevent the line from rendering once the joint breaks.
Your answer
Follow this Question
Related Questions
How to draw a line using script 8 Answers
Line renderer spring shape 1 Answer
spring joint setup problem 0 Answers
Render Numerical Values w/o Using GUI.* 1 Answer
How to make two objects connected by a joint collide? 1 Answer