Exemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="CompoundColliderShape"/> class.
        /// </summary>
        public CompoundColliderShape()
        {
            Type = ColliderShapeTypes.Compound;
            Is2D = false;

            InternalShape = InternalCompoundShape = new BulletSharp.CompoundShape();
        }
Exemplo n.º 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="CompoundColliderShape"/> class.
        /// </summary>
        public CompoundColliderShape()
        {
            Type = ColliderShapeTypes.Compound;
            Is2D = false;

            InternalShape = InternalCompoundShape = new BulletSharp.CompoundShape();
        }
Exemplo n.º 3
0
        /// <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
            };
        }
Exemplo n.º 4
0
        /// <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
            };
        }
Exemplo n.º 5
0
        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;
        }
Exemplo n.º 6
0
 /// <summary>
 /// Create the compound shape.
 /// </summary>
 public CollisionCompoundShape()
 {
     _shape = new BulletSharp.CompoundShape();
 }