- Home /
Question by
benfattino · Mar 05, 2012 at 04:25 PM ·
rotatemovevectrosity
Vectrosity object rotation
I'm using 5 script (see below) attached to 5 different objects (each script contains about 15000 lines) to draw a wireframe model. These 5 items are grouped under a single object. Should I turn on everything, but using a script by the book unity (script attached to the object) does not move anything. What is the best way to rotate/move objects vectrosity? It is possible use script mode like manual?
This is the script:
var lineMaterial : Material;
var lineThickness = 1.0;
var lineVisibility = true;
private var PointsList : float[];
private var Lines : Array;
private var LinesArray : Vector3[];
private var i : int;
PointsList = [0.0,0.0,0.0,1.5,1,1,2,3,4,3,4,5
]; //real point list is much longer
function Start () {
Lines = new Array();
for (i = 0; i < PointsList.length / 3; i++){
Lines.Add(Vector3(-PointsList[i*3],PointsList[i*3+2],-PointsList[i*3+1]));
}
LinesArray = Lines.ToBuiltin(Vector3);
var line = new VectorLine("Line", LinesArray, Color.white, lineMaterial, lineThickness);
Vector.DrawLine3D(line);
}
Thanks.
Comment
Your answer
Follow this Question
Related Questions
Google VR Play Store sample app built using Unity 3D with move and rotate 1 Answer
Getting stumped by vectors and quaternions 2 Answers
Help with Grid Movement 2 Answers
Boat moving forward while rotating towards point 1 Answer
Rotating Player 0 Answers