Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


center

The position of the shape's centroid relative to the shape's origin.
Read time 1 minuteLast updated 12 days ago

Definition

  • Type: Property
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule
public Vector2 center { readonly get; set; }