예제 #1
0
 public virtual void setMaterials(SWIGTYPE_p_p_physx__PxMaterial materials, SWIGTYPE_p_uint16_t materialCount)
 {
     physxPINVOKE.PxShape_setMaterials(swigCPtr, SWIGTYPE_p_p_physx__PxMaterial.getCPtr(materials), SWIGTYPE_p_uint16_t.getCPtr(materialCount));
     if (physxPINVOKE.SWIGPendingException.Pending)
     {
         throw physxPINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #2
0
        public virtual SWIGTYPE_p_uint32_t getMaterials(SWIGTYPE_p_p_physx__PxMaterial userBuffer, SWIGTYPE_p_uint32_t bufferSize)
        {
            SWIGTYPE_p_uint32_t ret = new SWIGTYPE_p_uint32_t(physxPINVOKE.PxShape_getMaterials__SWIG_1(swigCPtr, SWIGTYPE_p_p_physx__PxMaterial.getCPtr(userBuffer), SWIGTYPE_p_uint32_t.getCPtr(bufferSize)), true);

            if (physxPINVOKE.SWIGPendingException.Pending)
            {
                throw physxPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
예제 #3
0
        public virtual PxShape createShape(PxGeometry geometry, SWIGTYPE_p_p_physx__PxMaterial materials, SWIGTYPE_p_uint16_t materialCount)
        {
            global::System.IntPtr cPtr = physxPINVOKE.PxRigidActor_createShape__SWIG_1(swigCPtr, PxGeometry.getCPtr(geometry), SWIGTYPE_p_p_physx__PxMaterial.getCPtr(materials), SWIGTYPE_p_uint16_t.getCPtr(materialCount));
            PxShape ret = (cPtr == global::System.IntPtr.Zero) ? null : new PxShape(cPtr, false);

            if (physxPINVOKE.SWIGPendingException.Pending)
            {
                throw physxPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
예제 #4
0
        public virtual PxShape createShape(PxGeometry geometry, SWIGTYPE_p_p_physx__PxMaterial materials, SWIGTYPE_p_uint16_t materialCount, bool isExclusive, SWIGTYPE_p_physx__PxFlagsT_physx__PxShapeFlag__Enum_uint8_t_t shapeFlags)
        {
            global::System.IntPtr cPtr = physxPINVOKE.PxPhysics_createShape__SWIG_3(swigCPtr, PxGeometry.getCPtr(geometry), SWIGTYPE_p_p_physx__PxMaterial.getCPtr(materials), SWIGTYPE_p_uint16_t.getCPtr(materialCount), isExclusive, SWIGTYPE_p_physx__PxFlagsT_physx__PxShapeFlag__Enum_uint8_t_t.getCPtr(shapeFlags));
            PxShape ret = (cPtr == global::System.IntPtr.Zero) ? null : new PxShape(cPtr, false);

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