Пример #1
0
 /// <summary>
 /// Remove constraint.
 /// </summary>
 public void RemoveConstraint2D(Constraint2D constraint)
 {
     Runtime.ValidateRefCounted(this);
     RigidBody2D_RemoveConstraint2D(handle, (object)constraint == null ? IntPtr.Zero : constraint.Handle);
 }
Пример #2
0
 /// <summary>
 /// Set attached constriant (for gear).
 /// </summary>
 private void SetAttachedConstraint(Constraint2D constraint)
 {
     Runtime.ValidateRefCounted(this);
     Constraint2D_SetAttachedConstraint(handle, (object)constraint == null ? IntPtr.Zero : constraint.Handle);
 }