Exemple #1
0
        public virtual PxClothFabric createClothFabric(PxClothFabricDesc desc)
        {
            global::System.IntPtr cPtr = physxPINVOKE.PxPhysics_createClothFabric__SWIG_1(swigCPtr, PxClothFabricDesc.getCPtr(desc));
            PxClothFabric         ret  = (cPtr == global::System.IntPtr.Zero) ? null : new PxClothFabric(cPtr, false);

            if (physxPINVOKE.SWIGPendingException.Pending)
            {
                throw physxPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemple #2
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);
        }
Exemple #3
0
        public virtual PxClothFabric createClothFabric(SWIGTYPE_p_physx__PxInputStream stream)
        {
            global::System.IntPtr cPtr = physxPINVOKE.PxPhysics_createClothFabric__SWIG_0(swigCPtr, SWIGTYPE_p_physx__PxInputStream.getCPtr(stream));
            PxClothFabric         ret  = (cPtr == global::System.IntPtr.Zero) ? null : new PxClothFabric(cPtr, false);

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