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

A Collider represented by a set of (convex) vertices. More...

#include <Components.hpp>

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

Public Member Functions

 VertexCollider (std::vector< glm::vec3 > verts)
 
glm::vec3 furthestInDir (const Ref< PhysicsEntity > &pe, const glm::vec3 &norm) const override
 
- Public Member Functions inherited from Engine::Collider
void processCollision (const Ref< PhysicsEntity > &other)
 collision hook storage More...
 

Static Public Member Functions

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

std::vector< glm::vec3 > verts
 
- Public Attributes inherited from Engine::Collider
bool trigger = false
 
Ref< CollisionHookhook
 does the collider physically interact with other objects (def not stolen from unity)
 

Detailed Description

A Collider represented by a set of (convex) vertices.

Member Function Documentation

◆ boxCollider()

static Ref<VertexCollider> Engine::VertexCollider::boxCollider ( float  width = 64,
float  height = 64,
float  depth = 64 
)
inlinestatic

Generate a box collider with given dimensions. centered at 0,0,0.

Parameters
width
height
depth
Returns

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