Used for running collision detection on an Entity
More...
|
| CollisionComponent (params RectangleF[] boxes) |
| Initializes a new instance of the T:MB2D.EntityComponent.CollisionComponent class with an array of its associated AABB's More...
|
|
|
List< RectangleF > | Boxes [get, set] |
| Gets or sets the list of bounding boxes used for collision detection. More...
|
|
bool | Event [get, set] |
| Gets or sets a value indicating whether this T:MB2D.EntityComponent.CollisionComponent has had a collision event this frame. More...
|
|
Entity | Collider [get, set] |
| Gets or sets the collider entity associated with the collision event. More...
|
|
Used for running collision detection on an Entity
§ CollisionComponent()
MB2D.EntityComponent.CollisionComponent.CollisionComponent |
( |
params RectangleF [] |
boxes | ) |
|
|
inline |
Initializes a new instance of the T:MB2D.EntityComponent.CollisionComponent class with an array of its associated AABB's
- Parameters
-
boxes | The bounding boxes used for detecting collisions. |
§ Boxes
List<RectangleF> MB2D.EntityComponent.CollisionComponent.Boxes |
|
getset |
Gets or sets the list of bounding boxes used for collision detection.
The boxes.
§ Collider
Entity MB2D.EntityComponent.CollisionComponent.Collider |
|
getset |
Gets or sets the collider entity associated with the collision event.
The collider.
§ Event
bool MB2D.EntityComponent.CollisionComponent.Event |
|
getset |
Gets or sets a value indicating whether this T:MB2D.EntityComponent.CollisionComponent has had a collision event this frame.
true
if an event ocurred; otherwise, false
.
The documentation for this class was generated from the following file:
- MB2D/src/EntityComponent/Components/CollisionComponent.cs