예제 #1
0
        /// <summary>
        /// Adds the child shape.
        /// </summary>
        /// <param name="localTransform">The local transform.</param>
        /// <param name="shape">The shape.</param>
        public void AddChildShape(float4x4 localTransform, ICapsuleShapeImp shape)
        {
            var btChildShape     = new CapsuleShape(shape.Radius, shape.HalfHeight);
            var btLocalTransform = Translator.Float4X4ToBtMatrix(localTransform);

            BtCompoundShape.AddChildShape(btLocalTransform, btChildShape);
        }
예제 #2
0
        //CapsuleShape
        public CapsuleShape AddCapsuleShape(float radius, float height)
        {
            ICapsuleShapeImp iCapsuleShapeImp = _dwi.AddCapsuleShape(radius, height);
            var retval = new CapsuleShape();

            retval._capsuleShapeImp     = iCapsuleShapeImp;
            iCapsuleShapeImp.UserObject = retval;
            return(retval);
        }
 public void AddChildShape(float4x4 localTransform, ICapsuleShapeImp shape)
 {
     var btChildShape = new CapsuleShape(shape.Radius, shape.HalfHeight);
     var btLocalTransform = Translater.Float4X4ToBtMatrix(localTransform);
     BtCompoundShape.AddChildShape(btLocalTransform, btChildShape);
 }