Exemple #1
0
 public PxConstraintInfo(PxConstraint c, SWIGTYPE_p_void extRef, SWIGTYPE_p_uint32_t t) : this(physxPINVOKE.new_PxConstraintInfo__SWIG_1(PxConstraint.getCPtr(c), SWIGTYPE_p_void.getCPtr(extRef), SWIGTYPE_p_uint32_t.getCPtr(t)), true)
 {
     if (physxPINVOKE.SWIGPendingException.Pending)
     {
         throw physxPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemple #2
0
        public virtual PxConstraint createConstraint(PxRigidActor actor0, PxRigidActor actor1, PxConstraintConnector connector, PxConstraintShaderTable shaders, SWIGTYPE_p_uint32_t dataSize)
        {
            global::System.IntPtr cPtr = physxPINVOKE.PxPhysics_createConstraint(swigCPtr, PxRigidActor.getCPtr(actor0), PxRigidActor.getCPtr(actor1), PxConstraintConnector.getCPtr(connector), PxConstraintShaderTable.getCPtr(shaders), SWIGTYPE_p_uint32_t.getCPtr(dataSize));
            PxConstraint          ret  = (cPtr == global::System.IntPtr.Zero) ? null : new PxConstraint(cPtr, false);

            if (physxPINVOKE.SWIGPendingException.Pending)
            {
                throw physxPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemple #3
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(PxConstraint obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
Exemple #4
0
        public virtual bool updatePvdProperties(SWIGTYPE_p_physx__pvdsdk__PvdDataStream pvdConnection, PxConstraint c, PxPvdUpdateType.Enum updateType)
        {
            bool ret = physxPINVOKE.PxConstraintConnector_updatePvdProperties(swigCPtr, SWIGTYPE_p_physx__pvdsdk__PvdDataStream.getCPtr(pvdConnection), PxConstraint.getCPtr(c), (int)updateType);

            if (physxPINVOKE.SWIGPendingException.Pending)
            {
                throw physxPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }