|
SuperDex Physics C++ API
|
Information about a contact point between two actors. More...
#include <mochi_structs.h>
Public Attributes | |
| ActorHandle | actorA = {} |
| Handle of the colliding actor. | |
| ActorHandle | actorB = {} |
| Handle of the collider actor. | |
| real | distance = 0_r |
| Signed separation distance [m] between posA (on actorA) and the closest point on the surface of actorB. | |
| int | elementIndex = -1 |
| Element index on the surface mesh of actorA. | |
| Real3 | force = {} |
| Contact force [N] applied to actorA from actorB in world frame. | |
| real | intWeight = 0_r |
| Quadrature integration weight of the sample point on the colliding manifold of actorA. | |
| Real3 | normal = {} |
| Contact normal in world frame pointing away from actorB. | |
| Real3 | parametricCoords = {} |
| Parametric coordinates within the surface element of actorA. | |
| Real3 | pointVelocityA = {} |
| Velocity [m/s] of the contact point on actorA in world frame. | |
| Real3 | pointVelocityB = {} |
| Velocity [m/s] of the contact point on actorB in world frame. | |
| Real3 | posA = {} |
| Contact position [m] on actorA in world frame. | |
| Real3 | posB = {} |
| Approximate contact position [m] on actorB in world frame. | |
| int | sampleIndex = 0 |
| Sample point index of actorA. | |
Information about a contact point between two actors.
Describes a single contact or near-contact point between two actors. Contains geometric information (positions, normal, distance), kinematic data (velocities), and dynamic data (force). Also includes finite element discretization information for accurate force interpolation.
Definition at line 439 of file mochi_structs.h.
| ActorHandle superdex::ContactPoint::actorA = {} |
Handle of the colliding actor.
Definition at line 440 of file mochi_structs.h.
| ActorHandle superdex::ContactPoint::actorB = {} |
Handle of the collider actor.
Definition at line 442 of file mochi_structs.h.
| real superdex::ContactPoint::distance = 0_r |
Signed separation distance [m] between posA (on actorA) and the closest point on the surface of actorB.
Negative if the point is inside (i.e. actors overlap).
Definition at line 444 of file mochi_structs.h.
| int superdex::ContactPoint::elementIndex = -1 |
Element index on the surface mesh of actorA.
Definition at line 462 of file mochi_structs.h.
| Real3 superdex::ContactPoint::force = {} |
Contact force [N] applied to actorA from actorB in world frame.
Definition at line 452 of file mochi_structs.h.
| real superdex::ContactPoint::intWeight = 0_r |
Quadrature integration weight of the sample point on the colliding manifold of actorA.
Definition at line 460 of file mochi_structs.h.
| Real3 superdex::ContactPoint::normal = {} |
Contact normal in world frame pointing away from actorB.
Unit length.
Definition at line 450 of file mochi_structs.h.
| Real3 superdex::ContactPoint::parametricCoords = {} |
Parametric coordinates within the surface element of actorA.
Definition at line 464 of file mochi_structs.h.
| Real3 superdex::ContactPoint::pointVelocityA = {} |
Velocity [m/s] of the contact point on actorA in world frame.
Definition at line 454 of file mochi_structs.h.
| Real3 superdex::ContactPoint::pointVelocityB = {} |
Velocity [m/s] of the contact point on actorB in world frame.
Definition at line 456 of file mochi_structs.h.
| Real3 superdex::ContactPoint::posA = {} |
Contact position [m] on actorA in world frame.
Definition at line 446 of file mochi_structs.h.
| Real3 superdex::ContactPoint::posB = {} |
Approximate contact position [m] on actorB in world frame.
Definition at line 448 of file mochi_structs.h.
| int superdex::ContactPoint::sampleIndex = 0 |
Sample point index of actorA.
Definition at line 458 of file mochi_structs.h.