Пример #1
0
 protected virtual void DoJointErrorMessage(PhysicsJoint joint, string message)
 {
     // We need this to allow subclasses (but not other classes) to invoke the event; C# does
     // not allow subclasses to invoke the parent class event.
     if (OnJointErrorMessage != null)
     {
         OnJointErrorMessage(joint, message);
     }
 }
Пример #2
0
 protected virtual void DoJointDeactivated(PhysicsJoint joint)
 {
     // We need this to allow subclasses (but not other classes) to invoke the event; C# does
     // not allow subclasses to invoke the parent class event.
     if (OnJointDeactivated != null)
     {
         OnJointDeactivated(joint);
     }
 }
Пример #3
0
 public virtual Vector3 GetJointAxis(PhysicsJoint joint)
 {
     return(Vector3.Zero);
 }