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(); } }
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); }
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); }