Esempio n. 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, IConeShapeImp shape)
        {
            var btChildShape     = new ConeShape(shape.Radius, shape.Height);
            var btLocalTransform = Translator.Float4X4ToBtMatrix(localTransform);

            BtCompoundShape.AddChildShape(btLocalTransform, btChildShape);
        }
Esempio n. 2
0
        //ConeShape
        public ConeShape AddConeShape(float radius, float height)
        {
            IConeShapeImp iConeShapeImp = _dwi.AddConeShape(radius, height);
            var           retval        = new ConeShape();

            retval._coneShapeImp     = iConeShapeImp;
            iConeShapeImp.UserObject = retval;
            return(retval);
        }
 public void AddChildShape(float4x4 localTransform, IConeShapeImp shape)
 {
     var btChildShape = new ConeShape(shape.Radius, shape.Height);
     var btLocalTransform = Translater.Float4X4ToBtMatrix(localTransform);
     BtCompoundShape.AddChildShape(btLocalTransform, btChildShape);
 }