示例#1
0
        public virtual SWIGTYPE_p_physx__PxCloth createCloth(PxTransform globalPose, PxClothFabric fabric, PxClothParticle particles, SWIGTYPE_p_physx__PxFlagsT_physx__PxClothFlag__Enum_uint16_t_t flags)
        {
            global::System.IntPtr     cPtr = physxPINVOKE.PxPhysics_createCloth(swigCPtr, PxTransform.getCPtr(globalPose), PxClothFabric.getCPtr(fabric), PxClothParticle.getCPtr(particles), SWIGTYPE_p_physx__PxFlagsT_physx__PxClothFlag__Enum_uint16_t_t.getCPtr(flags));
            SWIGTYPE_p_physx__PxCloth ret  = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_physx__PxCloth(cPtr, false);

            if (physxPINVOKE.SWIGPendingException.Pending)
            {
                throw physxPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
示例#2
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_physx__PxCloth obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
 internal static HandleRef getCPtr(SWIGTYPE_p_physx__PxCloth obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }