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!