Finding vertex data while rotating

Software: Away3D 4.x

Pradyumn, Newbie
Posted: 31 October 2012 05:33 AM   Total Posts: 3

I have a cube and I’m rotating it on enter frame event. Whenever I trace the vertex data while rotating it always keep giving me the data like the cube is static, i.e., same data on every frame enter event.

This is the code I’m using in Enter Frame Event -

cube.rotationX += 10;
var v:Vector.<Number> = SubGeometry(cube.geometry.subGeometries[0]).vertexData;
trace(v);

I want this data to map Flash 2D coordinates from Away3D 3D coordinates.

Please help.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X