EntityCollidable newShape = new CompoundCollidable(new List<CompoundChildData>()
{
new CompoundChildData
{
Entry = new CompoundShapeEntry(
new SphereShape(2),
new RigidTransform(),
1000f),
//Events = null,
//CollisionRules = new BEPUphysics.CollisionRuleManagement.CollisionRules(),
Material = new Material(1f, .5f, .2f),
Tag = null,
},
});
Entity entity = new Entity(newShape, 1000f);
However, the graphic from the ModelDrawer doesn't properly match up with this thing, and I'm getting the feeling it isn't even the right shape, as it seems I can crush it into a space of 2-3 units in width.
I found The problem: I was using new RigidTransform() instead of RigidTransform.Identity, which causes the quaternion to be initialized with 0f values.
Last edited by Peter Prins on Fri Mar 23, 2012 4:21 pm, edited 1 time in total.