/// <summary> /// Remove constraint. /// </summary> public void RemoveConstraint2D(Constraint2D constraint) { Runtime.ValidateRefCounted(this); RigidBody2D_RemoveConstraint2D(handle, (object)constraint == null ? IntPtr.Zero : constraint.Handle); }
/// <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); }