>From the top of my head, I'm working in another language at the moment. This
would create a plane at each vertex and allow you to click it and trace out
which vertex is being clicked.

for each (var v:vertex in _arm.vertices){
/or

for (var i:Number = 0; i <= _arm.vertices.length-1){

var plane:Plane = new Plane()
plane.width = plane.height = 10;
plane.name = "Plane " + i;
plane.addMouseDown(mouseDownHandler); // for you to trace out which vertex
it is

// Need intelli sense here lol
var v:Vertex = _arm.vertices[i];
plane.x = v.x;
plane.y = v.y;
plane.z = v.z;
}



function mouseDownHandler(e:MouseEvent3D):void
{
var o:Plane = e.target; // or currentTarget
trace("You just clicked vertex index " + o.name);
// Now just use the index you find which is correct
}


GL

D





On 24 February 2011 16:55, NickBee <[email protected]> wrote:

> ok, I'm making good progress... I have cubes following the "end"
> vertex of the arms.
>
> I'll post the progress tonight and we'll see what's next...
>
> Thanks again for the help.

Reply via email to