Public Attributes | List of all members
b2ContactImpulse Struct Reference

#include <b2_world_callbacks.h>

Public Attributes

int32 count
 
float normalImpulses [b2_maxManifoldPoints]
 
float tangentImpulses [b2_maxManifoldPoints]
 

Detailed Description

Contact impulses for reporting. Impulses are used instead of forces because sub-step forces may approach infinity for rigid body collisions. These match up one-to-one with the contact points in b2Manifold.

Definition at line 70 of file b2_world_callbacks.h.

Member Data Documentation

◆ count

int32 b2ContactImpulse::count

Definition at line 74 of file b2_world_callbacks.h.

◆ normalImpulses

float b2ContactImpulse::normalImpulses[b2_maxManifoldPoints]

Definition at line 72 of file b2_world_callbacks.h.

◆ tangentImpulses

float b2ContactImpulse::tangentImpulses[b2_maxManifoldPoints]

Definition at line 73 of file b2_world_callbacks.h.


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


mvsim
Author(s):
autogenerated on Tue Jul 4 2023 03:08:22