Ejemplo n.º 1
0
 /// <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));
 }
Ejemplo n.º 2
0
 public NiPhysXJointDesc()
 {
     jointType = (NxJointType)0;
     maxForce  = 0.0f;
     maxTorque = 0.0f;
     solverExtrapolationFactor = 0.0f;
     useAccelerationSpring     = (uint)0;
     jointFlags = (uint)0;
     numLimits  = (uint)0;
 }
Ejemplo n.º 3
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);
 }
Ejemplo n.º 4
0
 private extern static System.IntPtr NxJoint_is_INVOKE(HandleRef classPointer, System.Boolean call_explicit, NxJointType type);
Ejemplo n.º 5
0
 private System.IntPtr is_virtual(NxJointType type)
 {
     return(@is(type));
 }
Ejemplo n.º 6
0
 private extern static IntPtr new_NxJointDesc_INVOKE(System.Boolean do_override, NxJointType t);