ZeroZero Game Engine  v0.0
A 3D game engine using Vulkan & Jolt
Public Attributes | List of all members
CollisionObject::Collision Struct Reference

Detailed Description

Collision data for the CollisionObject::on_collision_starts and CollisionObject::on_collision_persists signal

Public Attributes

vec3 position
 
vec3 normal
 
CollisionObjectobject
 

Member Data Documentation

vec3 normal

Normal for this collision, direction along which to move the object out of collision along the shortest path.

CollisionObject* object

Colliding object

vec3 position

World space position of the first contact point on the colliding object or, if the collision is detected by Character::getCollisions(), on the character