Untitled Game engine no.5  1.0
Public Member Functions | List of all members
Engine::VertexCollider2D Struct Reference

VertexCollider but in 2D. by default, all 2D colliders are non-kinematic triggers. More...

#include <Components.hpp>

Inheritance diagram for Engine::VertexCollider2D:
Inheritance graph
[legend]
Collaboration diagram for Engine::VertexCollider2D:
Collaboration graph
[legend]

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< VertexColliderboxCollider (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< CollisionHookhook
 does the collider physically interact with other objects (def not stolen from unity)
 
- Public Attributes inherited from Engine::VertexCollider
std::vector< glm::vec3 > verts
 

Detailed Description

VertexCollider but in 2D. by default, all 2D colliders are non-kinematic triggers.


The documentation for this struct was generated from the following file: