public override void PhysX_SetDrive(PhysX_Drive index, float spring, float damping, float forceLimit, bool acceleration)
 {
     if (nativeJoint != IntPtr.Zero)
     {
         PhysXNativeWrapper.PhysXNativeD6Joint.SetDrive(nativeJoint, (PhysXNativeWrapper.PhysXD6Drive)index, spring,
                                                        damping, forceLimit, acceleration);
     }
 }
예제 #2
0
        public override void PhysX_GetDrive( PhysX_Drive index, out float spring, out float damping, out float forceLimit,
			out bool acceleration )
        {
            if( nativeJoint == IntPtr.Zero )
            {
                spring = 0;
                damping = 0;
                forceLimit = 0;
                acceleration = false;
                return;
            }
            PhysXNativeWrapper.PhysXNativeD6Joint.GetDrive( nativeJoint, (PhysXNativeWrapper.PhysXD6Drive)index, out spring,
                out damping, out forceLimit, out acceleration );
        }
 public override void PhysX_GetDrive(PhysX_Drive index, out float spring, out float damping, out float forceLimit,
                                     out bool acceleration)
 {
     if (nativeJoint == IntPtr.Zero)
     {
         spring       = 0;
         damping      = 0;
         forceLimit   = 0;
         acceleration = false;
         return;
     }
     PhysXNativeWrapper.PhysXNativeD6Joint.GetDrive(nativeJoint, (PhysXNativeWrapper.PhysXD6Drive)index, out spring,
                                                    out damping, out forceLimit, out acceleration);
 }
예제 #4
0
 public override void PhysX_SetDrive( PhysX_Drive index, float spring, float damping, float forceLimit, bool acceleration )
 {
     if( nativeJoint != IntPtr.Zero )
     {
         PhysXNativeWrapper.PhysXNativeD6Joint.SetDrive( nativeJoint, (PhysXNativeWrapper.PhysXD6Drive)index, spring,
             damping, forceLimit, acceleration );
     }
 }