/// <summary>Type casting operator. The result may be cast to the desired subclass type. </summary> /// <param name="type">Used to query for a specific joint type. </param> public virtual System.IntPtr @is(NxJointType type) { if (doSetFunctionPointers) { throw new System.NotSupportedException("Cannot call abstract base member"); } return(NxJoint_is_INVOKE(ClassPointer, doSetFunctionPointers, type)); }
public NiPhysXJointDesc() { jointType = (NxJointType)0; maxForce = 0.0f; maxTorque = 0.0f; solverExtrapolationFactor = 0.0f; useAccelerationSpring = (uint)0; jointFlags = (uint)0; numLimits = (uint)0; }
/// <summary>Constructor sets to default. </summary> /// <param name="t">Joint type </param> protected NxJointDesc(NxJointType t) : base(IntPtr.Zero) { if ((GetType() != typeof(NxJointDesc))) { doSetFunctionPointers = true; SetPointer(new_NxJointDesc_INVOKE(doSetFunctionPointers, t)); System.IntPtr[] pointers = CreateFunctionPointers().ToArray(); set_pointers_INVOKE(ClassPointer, pointers, pointers.Length); } else { SetPointer(new_NxJointDesc_INVOKE(doSetFunctionPointers, t)); } GC.ReRegisterForFinalize(this); }
private extern static System.IntPtr NxJoint_is_INVOKE(HandleRef classPointer, System.Boolean call_explicit, NxJointType type);
private System.IntPtr is_virtual(NxJointType type) { return(@is(type)); }
private extern static IntPtr new_NxJointDesc_INVOKE(System.Boolean do_override, NxJointType t);