Example #1
0
        public virtual SWIGTYPE_p_physx__PxPruningStructure createPruningStructure(SWIGTYPE_p_p_physx__PxRigidActor actors, SWIGTYPE_p_uint32_t nbActors)
        {
            global::System.IntPtr cPtr = physxPINVOKE.PxPhysics_createPruningStructure(swigCPtr, SWIGTYPE_p_p_physx__PxRigidActor.getCPtr(actors), SWIGTYPE_p_uint32_t.getCPtr(nbActors));
            SWIGTYPE_p_physx__PxPruningStructure ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_physx__PxPruningStructure(cPtr, false);

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