示例#1
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);
        }
示例#2
0
 /// <summary>
 /// Adds a cone as a child shape.
 /// </summary>
 /// <param name="localTransform">The local transformation of the child shape.</param>
 /// <param name="childShape">The child shape.</param>
 public void AddChildShape(float4x4 localTransform, ConeShape childShape)
 {
     _compoundShapeImp.AddChildShape(localTransform, childShape._coneShapeImp);
 }