Thrive
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
thrive::Collision Struct Reference

Public Member Functions

 Collision (EntityId entityId1, EntityId entityId2, int addedCollisionDuration)
 Constructor.
 

Static Public Member Functions

static luabind::scope luaBindings ()
 Lua bindings. More...
 

Public Attributes

EntityId entityId1
 First collided entity.
 
EntityId entityId2
 Second collided entity.
 
int addedCollisionDuration
 The amount of time the collision represent. More...
 

Member Function Documentation

luabind::scope Collision::luaBindings ( )
static

Lua bindings.

Exposes:

Returns

Member Data Documentation

int thrive::Collision::addedCollisionDuration

The amount of time the collision represent.

An iteration of the main game loop may differ in time, and so users may want to know how long a period of time this collision represent. Inaccuracies may occour as the collision may not have been active for the entirety of this duration which must be taken into account or ignored. This time will keep accumalating until clearCollisions() is called.


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