#include <Manifold.hpp>
|
static Manifold | Empty () |
| Gets an empty manifold with no collisions.
|
|
|
Vector2 | a |
| Point a of the manifold.
|
|
Vector2 | b |
| Point b of the manifold.
|
|
Vector2 | normal |
| The normal of the manifold. Represents the direction in which the collision should be solved.
|
|
float | depth {} |
| The depth of the collision. Can be seen as the magnitude of the normal.
|
|
bool | hasCollision {} |
| Boolean indicating whether a collision happened.
|
|
◆ Manifold() [1/3]
◆ Manifold() [2/3]
stw::Manifold::Manifold |
( |
const Vector2 & | normal, |
|
|
float | depth ) |
◆ Manifold() [3/3]
stw::Manifold::Manifold |
( |
| ) |
|
◆ Empty()
static Manifold stw::Manifold::Empty |
( |
| ) |
|
|
inlinestatic |
Gets an empty manifold with no collisions.
- Returns
- An empty manifold.
◆ Swaped()
Manifold stw::Manifold::Swaped |
( |
| ) |
const |
◆ depth
float stw::Manifold::depth {} |
The depth of the collision. Can be seen as the magnitude of the normal.
◆ hasCollision
bool stw::Manifold::hasCollision {} |
Boolean indicating whether a collision happened.
◆ normal
The normal of the manifold. Represents the direction in which the collision should be solved.
The documentation for this struct was generated from the following files: