Hi Guys
I have a piece of code that produces an array of Vector3D points correctly.
i.e trace gives -
<code>
Vector3D(130, -20,0), VectorD(250, -20, 280), Vector3D(130, -20, 0);
</code>
What I need is for the array to be like this
<code>
new Vector3D(130, -20, 0), new Vector3D(etc, etc
</code>
Here is my snippet, is there an easy way to do this? Thanks in advance for any help.
<code>
public function onMouseDown(ev:MouseEvent3D) :void
{
if (mouseEnabled3D)
{
var obj2 : Object3D = ev.object;
shiftKey = ev.shiftKey;
_mouseVector = new Vector3D(obj2.x, obj2.y, obj2.z);
_pointsArray.push(_mouseVector);
_mouseVector=null;
}
if (shiftKey)
{
buildWall();}
}
</code>