Local orientation problem
Hi,
I am using a MultiShapeEntity with boxes, and I have a strange problem when I try to set the local orientation of the boxes: when there is only one box all is fine, and the physics and visual entities have the right position and orientation. But when there is two or more boxes, the positions are ok, but not the orientations. The physics entities are correctly oriented, but the visual entities are oriented with the opposite angle.
Here is the code that I am using:
BoxShape
box1 =newBoxShape(newBoxShapeProperties(0,newPose(
UIMath.EulerToQuaternion(new xna.Vector3(0, angle, 0))),newVector3(dimX1, dimY1, dimZ1))newVector3(posX2, posY2, posZ2),
);
BoxShapes.Add(box1);
BoxShape
box2 =newBoxShape(newBoxShapeProperties(0,newPose(
newVector3(posX2, posY2, posZ2),UIMath.EulerToQuaternion(new xna.Vector3(0, angle, 0))),newVector3(dimX2, dimY2, dimZ2))
);
BoxShapes.Add(box2);
What am I doing wrong?
Thanks
Adeline

