Hi there!
I am very much new to awqy3d and awayphysics. I am facing a problem with my game. Hope someone can help me.
I am trying to build a spoon egg game and I am creating both egg and spoon shapes using AWPConvexHullShape. The problem is the egg is appearing a little bit above from the spoon and I cant figure it why! The code I am using is
scene.addChild(spoonModel);
var spoonShape:AWPConvexHullShape = new AWPConvexHullShape(spoonModel.geometry);
spoonBody = new AWPRigidBody(spoonShape,spoonModel,0);
spoonBody.friction = 4;
spoonBody.position = new Vector3D(0,0,-150);
spoonBody.rotationY = -90;
physicsWorld.addRigidBody(spoonBody);
scene.addChild(eggModel);
var eggShape:AWPConvexHullShape = new AWPConvexHullShape(eggModel.geometry);
eggBody = new AWPRigidBody(eggShape,eggModel,1);
eggBody.position = new Vector3D(0,100,10);
eggBody.mass = 10;
eggBody.rotationY = -90;
eggBody.friction = 4;
physicsWorld.addRigidBody(eggBody);
I don’t have any clue about what was happening because I cant see the debugdraw also. I have searched for any tutorial about debugdraw and I found none.
It would be very grateful for me If I got through this.