![]() |
vkmEngine 1.0.0
A C++ game engine · vkmengine.com
|
One entity's view of a CollisionEvent, as its behaviors' collision hooks receive it. More...
#include <physics_events.h>
Public Attributes | |
| EntityId | other |
| The entity on the far side of the contact. | |
| glm::vec3 | point = {0.0f, 0.0f, 0.0f} |
| A representative world-space contact position. | |
| glm::vec3 | normal = {0.0f, 0.0f, 0.0f} |
| Unit, from other into this entity. | |
One entity's view of a CollisionEvent, as its behaviors' collision hooks receive it.
normal points from other into the receiver (Unity's convention): a body landing on the floor hears up, the floor hears down. On onCollisionExit point and normal are zero.