Documentation

Unity Engine


Unity Engine


GetAABB()

Get the world AABB that bounds all the shapes attached to this body. If there are no shapes attached to the body then the returned AABB is empty and centered on the body origin.
Read time 1 minuteLast updated a month ago

Definition

  • Type: Method
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule
public PhysicsAABB GetAABB()

Returns

Type

Description

PhysicsAABBThe world AABB that bounds all the shapes attached to this body.