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

What one tick's contacts add up to for one body, in the two reductions Rigidbody publishes. More...

#include <physics_internal.h>

Public Attributes

glm::vec3 support = {0.0f, -2.0f, 0.0f}
 Most upward contact normal.
glm::vec3 block = {0.0f, 1.0f, 0.0f}
 Most horizontal contact normal.
bool touched = false
 A resolved, non-trigger contact reached this body.

Detailed Description

What one tick's contacts add up to for one body, in the two reductions Rigidbody publishes.

Filled by the narrowphase, read after the solve. Both normals act on THIS body, so a contact's two bodies see opposite directions.


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