Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


constraints

Get/Set the degrees of freedom constraints (locks) for the body of Linear X, Linear Y and Rotation Z.
Read time 1 minuteLast updated 12 days ago

Definition

  • Type: Property
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule
public PhysicsBody.BodyConstraints constraints { get; set; }