I make a small script to control the start and end position of a line renderer with playmaker.
Web Player Demo: http://db.tt/TLVTbwma(click and draw the ball)1. First create a empty object (Line renderer start position) and place the
LineRendererPositions.js script on it. (Download bellow)
2. Second, place a LineRenderer on same object and a PlayMaker FSM.
Set in the Line Renderer > Positions > Size to
2.
3. Now create in the FSM a GetPosition and get the Vector3 of this game object.
(Line Renderer start position)4. Create a second GetPosition and get the Vector3 of a second game object.
(Line Renderer end position)5. Now create 2 SetProperty and set the 2 Vector3 values to the LineRendererPositions script on same gameobject.
(Sorry my english)