x


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.

more ▼

asked Mar 05, 2012 at 04:25 PM

benfattino gravatar image

benfattino
213 180 145 145

(comments are locked)
10|3000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1127
x685
x61

asked: Mar 05, 2012 at 04:25 PM

Seen: 816 times

Last Updated: Mar 05, 2012 at 04:25 PM