Exemple #1
0
    public override BulletShape GetChildShapeFromCompoundShapeIndex(BulletShape cShape, int indx) {

        if (cShape == null)
            return null;
        CompoundShape compoundShape = (cShape as BulletShapeXNA).shape as CompoundShape;
        CollisionShape shape = compoundShape.GetChildShape(indx);
        BulletShape retShape = new BulletShapeXNA(shape, BSShapeTypeFromBroadPhaseNativeType(shape.GetShapeType()));


        return retShape;
    }
Exemple #2
0
    public override BulletShape DuplicateCollisionShape(BulletWorld pWorld, BulletShape pShape, uint id)
    {
        CollisionShape shape1 = (pShape as BulletShapeXNA).shape;

        // TODO:  Turn this from a reference copy to a Value Copy.
        BulletShapeXNA shape2 = new BulletShapeXNA(shape1, BSShapeTypeFromBroadPhaseNativeType(shape1.GetShapeType()));

        return shape2;
    }