/// <summary> /// Initializes a new instance of the <see cref="CompoundColliderShape"/> class. /// </summary> public CompoundColliderShape() { Type = ColliderShapeTypes.Compound; Is2D = false; InternalShape = InternalCompoundShape = new BulletSharp.CompoundShape(); }
/// <summary> /// Initializes a new instance of the <see cref="CompoundColliderShape"/> class. /// </summary> public CompoundColliderShape() { Type = ColliderShapeTypes.Compound; Is2D = false; InternalShape = InternalCompoundShape = new BulletSharp.CompoundShape() { LocalScaling = Vector3.One }; }
public CompoundShape(CollisionShape[] shapes, OpenTK.Matrix4[] transforms) { this.shapes.AddRange(shapes); this.transforms.AddRange(transforms); com = new BulletSharp.CompoundShape(); for (var i = 0; i < shapes.Length; i++) { com.AddChildShape(transforms[i], shapes[i].BulletShape); } BulletShape = com; BulletShape.UserObject = this; }
/// <summary> /// Create the compound shape. /// </summary> public CollisionCompoundShape() { _shape = new BulletSharp.CompoundShape(); }