CompoundBody drawing
Posted: Sun Jun 19, 2011 9:50 pm
Hello,
I am trying to draw a compound body, I have a couple of models of which I calculate a BoxShape and I add it together to form a compound body. The problem is now drawing every single model I am using CompoundShapeEntry.LocalTransform.Matrix as WorldMatrix when drawing, but its always the same. The compoundBody is being created properly because I can see other models interacting with it where it is supposed to be drawn. Am i doing something wrong ? How can i calculate the worldmatrix of a single ShapeEntry so I can draw it properly ?
Thanks in advance,
I am trying to draw a compound body, I have a couple of models of which I calculate a BoxShape and I add it together to form a compound body. The problem is now drawing every single model I am using CompoundShapeEntry.LocalTransform.Matrix as WorldMatrix when drawing, but its always the same. The compoundBody is being created properly because I can see other models interacting with it where it is supposed to be drawn. Am i doing something wrong ? How can i calculate the worldmatrix of a single ShapeEntry so I can draw it properly ?
Thanks in advance,