|
Rapier C — 3D / f32 0.36.0+c.0
|
Contact-force event, enabled by flags and the collider force threshold. More...
#include <rapier.h>
Data Fields | |
| struct R3ColliderHandle | collider1 |
| First collider in the pair. | |
| struct R3ColliderHandle | collider2 |
| Second collider in the pair. | |
| struct R3Vector | total_force |
| Sum of world-space contact forces. | |
| R3Real | total_force_magnitude |
| Sum of contact force magnitudes. | |
| struct R3Vector | max_force_direction |
| World-space direction of the strongest contact force. | |
| R3Real | max_force_magnitude |
| Magnitude of the strongest contact force. | |
| R3Bool | started |
| 1 for the first step the total force magnitude exceeds the threshold, 0 on the following steps while it stays above it. | |
Contact-force event, enabled by flags and the collider force threshold.
| struct R3ColliderHandle R3ContactForceEvent::collider1 |
First collider in the pair.
| struct R3ColliderHandle R3ContactForceEvent::collider2 |
Second collider in the pair.
| struct R3Vector R3ContactForceEvent::max_force_direction |
World-space direction of the strongest contact force.
| R3Real R3ContactForceEvent::max_force_magnitude |
Magnitude of the strongest contact force.
| R3Bool R3ContactForceEvent::started |
1 for the first step the total force magnitude exceeds the threshold, 0 on the following steps while it stays above it.
No event is emitted when the force drops below it.
| struct R3Vector R3ContactForceEvent::total_force |
Sum of world-space contact forces.
| R3Real R3ContactForceEvent::total_force_magnitude |
Sum of contact force magnitudes.