public override BulletShape BuildCapsuleShape(BulletWorld pWorld, float pRadius, float pHeight, Vector3 pScale)
{
DiscreteDynamicsWorld world = (pWorld as BulletWorldXNA).world;
IndexedVector3 scale = new IndexedVector3(pScale.X, pScale.Y, pScale.Z);
CapsuleShapeZ capsuleShapeZ = new CapsuleShapeZ(pRadius, pHeight);
capsuleShapeZ.SetMargin(world.WorldSettings.Params.collisionMargin);
capsuleShapeZ.SetLocalScaling(ref scale);
return new BulletShapeXNA(capsuleShapeZ, BSPhysicsShapeType.SHAPE_CAPSULE);
;
}