Hey guys, i`m trying a little bit with awayphysics and got a problem with Shape-Position of loaded AWD2.
This .awd-file has got two cubes. a big one thats standing on the ground with position 0,0,0 and one small one thats up in the air at 0,150,0.
now i created the shapes and bodys for awayphysics:
shape1 = new AWPBoxShape(200,200,200);
body1 = new AWPCollisionObject(shape1, Mesh(get3dChildByName("big")));
physics.addCollisionObject(body1);
shape2 = new AWPBoxShape(20,20,20);
body2 = new AWPCollisionObject(shape2, Mesh(get3dChildByName("small")));
physics.addCollisionObject(body2);
the shape of the big one fits perfect and is located at 0,0,0, same as the concerning mesh. but the shape of the small one is located at 0,0,0, too, although the concerning mesh is at 0,150,0.
how can i tell the shape to adapt the position of the mesh? do you know what i mean? ^^