vkmEngine 1.0.0
A C++ game engine · vkmengine.com
Loading...
Searching...
No Matches
Vkm::Engine::CollisionEvent Struct Reference

A resolved (non-trigger) contact between two bodies began, lasted or ended this tick. More...

#include <physics_events.h>

Detailed Description

A resolved (non-trigger) contact between two bodies began, lasted or ended this tick.

a has the lower entity slot, so a pair is named the same way every tick. On Began and Stayed, point is a representative world-space position and normal points a to b; on Ended both keep their defaults, and either id may name a dead entity, since Ended is sent whatever ended the contact. See Behavior::onCollisionEnter for the per-entity form.


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