PhysicsAABB
Create an axis-aligned bounding-box with the specified bounds.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Constructor
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
PhysicsAABB(Vector2, Vector2)
Create an axis-aligned bounding-box with the specified bounds.
public PhysicsAABB(Vector2 lowerBound, Vector2 upperBound)
Parameters
PhysicsAABB(Vector2)
Create an axis-aligned bounding-box that encapsulates the specified point.
public PhysicsAABB(Vector2 point)
Parameters
The point which the AABB should encapsulate.