ドキュメント

Unity Engine

Unity Engine

PhysicsAABB

Create an axis-aligned bounding-box with the specified bounds.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

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

lowerBound

The lower-left bounding vertex. This should be equal to or lower than
upperBound
.

upperBound

The upper-right bounding vertex. This should be equal to or above
lowerBound
.

PhysicsAABB(Vector2)

Create an axis-aligned bounding-box that encapsulates the specified point.
public PhysicsAABB(Vector2 point)

Parameters

point

The point which the AABB should encapsulate.