Пример #1
0
 public PxQueryCache(PxShape s, SWIGTYPE_p_uint32_t findex) : this(physxPINVOKE.new_PxQueryCache__SWIG_1(PxShape.getCPtr(s), SWIGTYPE_p_uint32_t.getCPtr(findex)), true)
 {
     if (physxPINVOKE.SWIGPendingException.Pending)
     {
         throw physxPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #2
0
 public virtual void detachShape(PxShape shape)
 {
     physxPINVOKE.PxRigidActor_detachShape__SWIG_1(swigCPtr, PxShape.getCPtr(shape));
     if (physxPINVOKE.SWIGPendingException.Pending)
     {
         throw physxPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #3
0
 public virtual void onObjectOutOfBounds(PxShape shape, PxActor actor)
 {
     physxPINVOKE.PxBroadPhaseCallback_onObjectOutOfBounds__SWIG_0(swigCPtr, PxShape.getCPtr(shape), PxActor.getCPtr(actor));
     if (physxPINVOKE.SWIGPendingException.Pending)
     {
         throw physxPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #4
0
 public virtual void detachShape(PxShape shape, bool wakeOnLostTouch)
 {
     physxPINVOKE.PxRigidActor_detachShape__SWIG_0(swigCPtr, PxShape.getCPtr(shape), wakeOnLostTouch);
     if (physxPINVOKE.SWIGPendingException.Pending)
     {
         throw physxPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #5
0
 public virtual PxQueryHitType.Enum preFilter(PxFilterData filterData, PxShape shape, PxRigidActor actor, SWIGTYPE_p_physx__PxFlagsT_physx__PxHitFlag__Enum_uint16_t_t queryFlags)
 {
     PxQueryHitType.Enum ret = (PxQueryHitType.Enum)physxPINVOKE.PxQueryFilterCallback_preFilter(swigCPtr, PxFilterData.getCPtr(filterData), PxShape.getCPtr(shape), PxRigidActor.getCPtr(actor), SWIGTYPE_p_physx__PxFlagsT_physx__PxHitFlag__Enum_uint16_t_t.getCPtr(queryFlags));
     if (physxPINVOKE.SWIGPendingException.Pending)
     {
         throw physxPINVOKE.SWIGPendingException.Retrieve();
     }
     return(ret);
 }
Пример #6
0
        public PxShape createShape(PxGeometry geometry, PxMaterial material, SWIGTYPE_p_physx__PxFlagsT_physx__PxShapeFlag__Enum_uint8_t_t shapeFlags)
        {
            global::System.IntPtr cPtr = physxPINVOKE.PxRigidActor_createShape__SWIG_2(swigCPtr, PxGeometry.getCPtr(geometry), PxMaterial.getCPtr(material), 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);
        }
Пример #7
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);
        }
Пример #8
0
        public PxShape createShape(PxGeometry geometry, PxMaterial material)
        {
            global::System.IntPtr cPtr = physxPINVOKE.PxRigidActor_createShape__SWIG_3(swigCPtr, PxGeometry.getCPtr(geometry), PxMaterial.getCPtr(material));
            PxShape ret = (cPtr == global::System.IntPtr.Zero) ? null : new PxShape(cPtr, false);

            if (physxPINVOKE.SWIGPendingException.Pending)
            {
                throw physxPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #9
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);
        }
        public virtual SWIGTYPE_p_physx__PxFlagsT_physx__PxFilterFlag__Enum_uint16_t_t pairFound(SWIGTYPE_p_uint32_t pairID, SWIGTYPE_p_uint32_t attributes0, PxFilterData filterData0, PxActor a0, PxShape s0, SWIGTYPE_p_uint32_t attributes1, PxFilterData filterData1, PxActor a1, PxShape s1, SWIGTYPE_p_physx__PxFlagsT_physx__PxPairFlag__Enum_uint16_t_t pairFlags)
        {
            SWIGTYPE_p_physx__PxFlagsT_physx__PxFilterFlag__Enum_uint16_t_t ret = new SWIGTYPE_p_physx__PxFlagsT_physx__PxFilterFlag__Enum_uint16_t_t(physxPINVOKE.PxSimulationFilterCallback_pairFound(swigCPtr, SWIGTYPE_p_uint32_t.getCPtr(pairID), SWIGTYPE_p_uint32_t.getCPtr(attributes0), PxFilterData.getCPtr(filterData0), PxActor.getCPtr(a0), PxShape.getCPtr(s0), SWIGTYPE_p_uint32_t.getCPtr(attributes1), PxFilterData.getCPtr(filterData1), PxActor.getCPtr(a1), PxShape.getCPtr(s1), SWIGTYPE_p_physx__PxFlagsT_physx__PxPairFlag__Enum_uint16_t_t.getCPtr(pairFlags)), true);

            if (physxPINVOKE.SWIGPendingException.Pending)
            {
                throw physxPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #11
0
 public PxActorShape(PxRigidActor a, PxShape s) : this(physxPINVOKE.new_PxActorShape__SWIG_1(PxRigidActor.getCPtr(a), PxShape.getCPtr(s)), true)
 {
 }
Пример #12
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(PxShape obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
 public void DeleteShape(PxShape shape)
 {
     rigidbody.detachShape(shape);
 }