Example #1
0
 public virtual void setConstraintFunctions(PxConstraintConnector connector, PxConstraintShaderTable shaders)
 {
     physxPINVOKE.PxConstraint_setConstraintFunctions(swigCPtr, PxConstraintConnector.getCPtr(connector), PxConstraintShaderTable.getCPtr(shaders));
     if (physxPINVOKE.SWIGPendingException.Pending)
     {
         throw physxPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #2
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(PxConstraintConnector obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
Example #3
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);
        }