A circle collider.
More...
#include <Collider.hpp>
◆ CircleCollider() [1/2]
stw::CircleCollider::CircleCollider |
( |
| ) |
|
|
default |
◆ CircleCollider() [2/2]
stw::CircleCollider::CircleCollider |
( |
float | radius | ) |
|
◆ FindFurthestPoint()
Find the furthest point in the specified direction.
- Parameters
-
transform | The transform of this collider. |
direction | Direction in which to find the furthest point. |
- Returns
- The furthest point.
Implements stw::Collider.
◆ GetBoundingBoxSize()
Vector2 stw::CircleCollider::GetBoundingBoxSize |
( |
| ) |
const |
|
overridevirtual |
Gets the size of the box that surrounds the collider.
- Returns
- The bounding box of the collider.
Implements stw::Collider.
◆ TestCollision() [1/4]
Tests the collision against a aabb collider.
- Parameters
-
transform | The transform of this collider. |
collider | The circle collider to collide with. |
aabbTransform | The transform of the collider to collide with. |
- Returns
- The manifold of that collision.
Implements stw::Collider.
◆ TestCollision() [2/4]
Tests the collision against a box collider.
- Parameters
-
transform | The transform of this collider. |
collider | The box collider to collide with. |
boxTransform | The transform of the collider to collide with. |
- Returns
- The manifold of that collision.
Implements stw::Collider.
◆ TestCollision() [3/4]
Tests the collision against a circle collider.
- Parameters
-
transform | The transform of this collider. |
collider | The circle collider to collide with. |
circleTransform | The transform of the collider to collide with. |
- Returns
- The manifold of that collision.
Implements stw::Collider.
◆ TestCollision() [4/4]
Tests the collision against a generic collider.
- Parameters
-
transform | The transform of this collider. |
collider | The collider to collide with. |
colliderTransform | The transform of the collider to collide with. |
- Returns
- The manifold of that collision.
Implements stw::Collider.
◆ radius
float stw::CircleCollider::radius = 0 |
The documentation for this class was generated from the following files: