AWPBvhTriangleMeshShape error

Software: Away3D 4.x

Avatar
Léo Santana, Newbie
Posted: 14 July 2013 02:55 AM   Total Posts: 4

Hi guys,

Please help me with this problem:

var mat:ColorMaterial = new ColorMaterial(0x4B871F);
mat.lightPicker = stateLight;
var mesh:Mesh = Mesh(ObjectContainer3D(e.target).getChildAt(0));
//mesh.scale(100);
mesh.material = mat;
//view.scene.addChild(mesh);
var shape:AWPBvhTriangleMeshShape = new AWPBvhTriangleMeshShape(mesh.geometry);
var body:AWPRigidBody = new AWPRigidBody(shape, mesh, 0);
body.scale = new Vector3D(40, 40, 40);
world.addRigidBody(body);

I’m using away4.1.1 and awayphysics-core-fp11-master

Thanks!

 

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X