Hi, Hope you guys can help as this is pickling my tiny mind.
all i wish to do is be able to make a spline created with Vectrosity visible\invisible through a button with an FSM on it.
I have the Vectrosity actions, but am completely stumped about how to access the line so I can disable it. Looking through the forums I've seen the Vectrosity.AddProxy, but I have no Idea how to implement this and make it usable. For instance in the Vectrosity demo scene, the 'makespline' script:
import Vectrosity;
import System.Collections.Generic;
var segments = 250;
var loop = true;
var usePoints = false;
function Start () {
var splinePoints = new List.<Vector3>();
var i = 1;
var obj = GameObject.Find("Sphere"+(i++));
while (obj != null) {
splinePoints.Add(obj.transform.position);
obj = GameObject.Find("Sphere"+(i++));
}
if (usePoints) {
var dotLine = new VectorPoints("Spline", new Vector3[segments+1], null, 2.0);
dotLine.MakeSpline (splinePoints.ToArray(), segments, loop);
dotLine.Draw();
}
else {
var spline = new VectorLine("Spline", new Vector3[segments+1], null, 2.0, LineType.Continuous);
spline.MakeSpline (splinePoints.ToArray(), segments, loop);
spline.Draw3D();
}
}
How would I go about making this spline available to the playmaker actions?
Sorry in advance for my coding incompetence.. hence my love of playmaker!!
thanks,
Alfie