Collision-detection using an axis-aligned box.
More...
|
RectangleF | Area => RectangleF.FromLTRB(Minimum.X, Minimum.Y, Maximum.X, Maximum.Y) |
| The area covered by this box. More...
|
|
|
Vector2 | Minimum [get, set] |
| The lower left corner of the box (originating from the body's position). More...
|
|
Vector2 | Maximum [get, set] |
| The upper right corner of the box (originating from the body's position). More...
|
|
Collision-detection using an axis-aligned box.
◆ CollisionTest() [1/2]
override bool FrameOfReference.World.Components.Box.CollisionTest |
( |
Vector2 |
point, |
|
|
float |
rotation |
|
) |
| |
|
inline |
Determines whether a certain point lies within the box.
- Parameters
-
point | The point to check for collision in entity space. |
rotation | How the box shall be rotated before performing the collision test. |
- Returns
true
if point does collide with the box, false
otherwise.
◆ CollisionTest() [2/2]
override bool FrameOfReference.World.Components.Box.CollisionTest |
( |
Quadrangle |
area, |
|
|
float |
rotation |
|
) |
| |
|
inline |
Determines whether a certain area lies within the box.
- Parameters
-
area | The area to check for collision in entity space. |
rotation | How the box shall be rotated before performing the collision test. |
- Returns
true
if area does collide with the box, false
.
◆ Area
RectangleF FrameOfReference.World.Components.Box.Area => RectangleF.FromLTRB(Minimum.X, Minimum.Y, Maximum.X, Maximum.Y) |
The area covered by this box.
◆ Maximum
Vector2 FrameOfReference.World.Components.Box.Maximum |
|
getset |
The upper right corner of the box (originating from the body's position).
◆ Minimum
Vector2 FrameOfReference.World.Components.Box.Minimum |
|
getset |
The lower left corner of the box (originating from the body's position).
The documentation for this class was generated from the following file: