Saga
Saga Game Engine
Loading...
Searching...
No Matches
Saga::Systems::Collision Struct Reference

Collision struct that details a collision. More...

#include <collisionSystem.h>

Public Attributes

float t
 time at which the collision happens.
 
glm::vec3 pos
 position of the collision.
 
glm::vec3 normal
 normal direction of the collision.
 
Entity entity0
 first Entity in the collision.
 
Entity entity1
 second Entity in the collision. The normal direction is away from this Entity.
 

Detailed Description

Collision struct that details a collision.

Member Data Documentation

◆ entity0

Entity Saga::Systems::Collision::entity0

first Entity in the collision.

◆ entity1

Entity Saga::Systems::Collision::entity1

second Entity in the collision. The normal direction is away from this Entity.

◆ normal

glm::vec3 Saga::Systems::Collision::normal

normal direction of the collision.

◆ pos

glm::vec3 Saga::Systems::Collision::pos

position of the collision.

◆ t

float Saga::Systems::Collision::t

time at which the collision happens.


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