I have created to display objects and between the have set up a physics joint, type “distance”. Gravity is all set to 0.
The central object (brown circle) is static and sits in the middle of the screen.
The green circle can be dragged around the screen and returns back towards the static object.
As per the screenshot what I would like to do is to draw a straight line between the two objects and that updates as they move, exactly as you can see when in hybrid mode.
Is there anyway to display this line when in normal mode or any easy way to code this? I do not need the line to have any physical influence to the scene I just want to represent it?
I have seen the rope effect of chaining lots of objects together but what I want to create is a straight line, like a rod that pivots on the center points and stretches and shortens accordingly.
Thanks