Skip to main content

BoundsContainer

A class in Root.Township, the global namespace.

A Bounds with a world rotation, for testing whether a point lies inside a rotated box.

Constructors​

MemberWhat it is
BoundsContainer()Creates a BoundsContainer with default values.

Fields​

MemberWhat it is
Bounds boundsThe box, in rotated space.
Quaternion worldRotationThe box's rotation.

Methods​

MemberWhat it is
bool CheckPosition(Vector3 position)Rotates the point by the inverse rotation and checks it against the bounds. The bounds centre is in that rotated space.