예제 #1
0
        public CylinderShape AddCylinderShape(float3 halfExtents)
        {
            ICylinderShapeImp iCylinderShapeImp = _dwi.AddCylinderShape(halfExtents);
            var retval = new CylinderShape();

            retval._cylinderShapeImp     = iCylinderShapeImp;
            iCylinderShapeImp.UserObject = retval;
            return(retval);
        }
예제 #2
0
 /// <summary>
 /// Adds a cylinder 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, CylinderShape childShape)
 {
     _compoundShapeImp.AddChildShape(localTransform, childShape._cylinderShapeImp);
 }