![]() |
vkmEngine 1.0.15
A C++ game engine · vkmengine.com
|
A resolved (non-trigger) contact between two bodies began, lasted or ended this tick. More...
#include <physics_events.h>
Public Attributes | |
| float | speed = 0.0f |
| m/s, never below zero. | |
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, normal points a to b and speed is how fast the two closed along it as the tick began - how hard it struck, on Began; on Ended all three 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.