internal static global::System.Runtime.InteropServices.HandleRef getCPtr(PxClothParticle obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr); }
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); }