class
ABoxColliderA box collider attached to a Game object through a Physics object.
Contents
Base classes
- class ACollider
- A simple collider. Used to resolve collisions.
Constructors, destructors, conversion operators
-
ABoxCollider(const RML::
Vector2D& minExtent, const RML:: Vector2D& maxExtent) - Contructor.
- ~ABoxCollider()
- Destructor.
Public functions
- void selfUpdate(float deltaX, float deltaY) override
- Update the type specific paramaters of this collider.
- auto tryIntersect(ABoxCollider& box) -> ACollideData override
- Returns collision status between 2 different colliders.
- auto tryIntersect(APlaneCollider& plane) -> ACollideData override
- Query collision status with another plane type collider.
- auto tryIntersect(ASphereCollider& sphere) -> ACollideData override
- Query collision status with another sphere type collider.
-
auto getLowerLeftBound() const -> const RML::
Vector2D - Returns the lower left corner of the box collider.
-
auto getUpperRightBound() const -> const RML::
Vector2D - Returns the upper right corner of the box collider.
-
auto getUpperLeftBound() const -> RML::
Vector2D - Returns the upper left corner of the box collider.
-
auto getLowerRightBound() const -> RML::
Vector2D - Returns the lower right corner of the box collider.
Public variables
-
RML::
Vector2D m_MinExtent - Lower left coordinates of the box collider.
-
RML::
Vector2D m_MaxExtent - Upper right coordinates of the box collider.
Function documentation
Rubeus:: Awerere:: ABoxCollider:: ABoxCollider(const RML:: Vector2D& minExtent,
const RML:: Vector2D& maxExtent)
Contructor.
Parameters | |
---|---|
minExtent | The lower left point of the box. |
maxExtent | The upper right point of the box. |
void Rubeus:: Awerere:: ABoxCollider:: selfUpdate(float deltaX,
float deltaY) override
Update the type specific paramaters of this collider.
Parameters | |
---|---|
deltaX | Change in X position. |
deltaY | Change in Y position. |
ACollideData Rubeus:: Awerere:: ABoxCollider:: tryIntersect(ABoxCollider& box) override
Returns collision status between 2 different colliders.
Parameters | |
---|---|
box | The box collider to try a collision with. |
Returns | Collide data, containing collision information. |
ACollideData Rubeus:: Awerere:: ABoxCollider:: tryIntersect(APlaneCollider& plane) override
Query collision status with another plane type collider.
Parameters | |
---|---|
plane | The plane collider this collider is being queried with. |
Returns | Collision data. |
ACollideData Rubeus:: Awerere:: ABoxCollider:: tryIntersect(ASphereCollider& sphere) override
Query collision status with another sphere type collider.
Parameters | |
---|---|
sphere | The sphere collider this collider is being queried with. |
Returns | Collision data. |
const RML:: Vector2D Rubeus:: Awerere:: ABoxCollider:: getLowerLeftBound() const
Returns the lower left corner of the box collider.
Returns | The lower left corner's position. |
---|
const RML:: Vector2D Rubeus:: Awerere:: ABoxCollider:: getUpperRightBound() const
Returns the upper right corner of the box collider.
Returns | The upper right corner's position. |
---|
RML:: Vector2D Rubeus:: Awerere:: ABoxCollider:: getUpperLeftBound() const
Returns the upper left corner of the box collider.
Returns | The upper left corner's position. |
---|
RML:: Vector2D Rubeus:: Awerere:: ABoxCollider:: getLowerRightBound() const
Returns the lower right corner of the box collider.
Returns | The lower right corner's position. |
---|