ABoxCollider class
A 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::
            Contructor.
| Parameters | |
|---|---|
| minExtent | The lower left point of the box. | 
| maxExtent | The upper right point of the box. | 
              void Rubeus::
            Update the type specific paramaters of this collider.
| Parameters | |
|---|---|
| deltaX | Change in X position. | 
| deltaY | Change in Y position. | 
              ACollideData Rubeus::
            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::
            Query collision status with another plane type collider.
| Parameters | |
|---|---|
| plane | The plane collider this collider is being queried with. | 
| Returns | Collision data. | 
              ACollideData Rubeus::
            Query collision status with another sphere type collider.
| Parameters | |
|---|---|
| sphere | The sphere collider this collider is being queried with. | 
| Returns | Collision data. | 
              const RML::
            Returns the lower left corner of the box collider.
| Returns | The lower left corner's position. | 
|---|
              const RML::
            Returns the upper right corner of the box collider.
| Returns | The upper right corner's position. | 
|---|
              RML::
            Returns the upper left corner of the box collider.
| Returns | The upper left corner's position. | 
|---|
              RML::
            Returns the lower right corner of the box collider.
| Returns | The lower right corner's position. | 
|---|