CompoundCollisionShape

I am making CompoundCollisionShape and I have some problem. When I create one child shape to add to compound collision shape, I can only set translation of it, but not rotation:


      CompoundCollisionShape ccShape = new CompoundCollisionShape();
      ccShape.addChildShape(new MeshCollisionShape(someMesh), someMesh.getLocalTranslation());


Because "someMesh" is rotated, I get improper collision shape for my model, so I want to know if this can be expanded to support rotation too (or at least support prerotated object on instantiation of MeshCollisionShape and probably others)?

Dunno if you use a binding or so, but directly you can set the transform, consinting of rotation and position

Sry, but what binding??  :?

InShadow said:

Because "someMesh" is rotated, I get improper collision shape for my model, so I want to know if this can be expanded to support rotation too (or at least support prerotated object on instantiation of MeshCollisionShape and probably others)?

Hi, actually I forgot adding that method :) Its in svn now.
Cheers,
Normen

binding, like the one normen wrote 

Jao, thanks very much! :slight_smile: