Untitled Game engine no.5
1.0
|
VertexCollider but in 2D. by default, all 2D colliders are non-kinematic triggers. More...
#include <Components.hpp>
Public Member Functions | |
VertexCollider2D (std::vector< glm::vec3 > verts) | |
Public Member Functions inherited from Engine::Collider | |
void | processCollision (const Ref< PhysicsEntity > &other) |
collision hook storage More... | |
Public Member Functions inherited from Engine::VertexCollider | |
VertexCollider (std::vector< glm::vec3 > verts) | |
glm::vec3 | furthestInDir (const Ref< PhysicsEntity > &pe, const glm::vec3 &norm) const override |
Additional Inherited Members | |
Static Public Member Functions inherited from Engine::VertexCollider | |
static Ref< VertexCollider > | boxCollider (float width=64, float height=64, float depth=64) |
Generate a box collider with given dimensions. centered at 0,0,0. More... | |
Public Attributes inherited from Engine::Collider | |
bool | trigger = false |
Ref< CollisionHook > | hook |
does the collider physically interact with other objects (def not stolen from unity) | |
Public Attributes inherited from Engine::VertexCollider | |
std::vector< glm::vec3 > | verts |
VertexCollider but in 2D. by default, all 2D colliders are non-kinematic triggers.