|
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 |
| Index of the triangle of actorA in Actor::GetSurfaceMesh, or in Actor::GetContactSkinMesh when contact uses the contact skin. | |
| 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 518 of file mochi_structs.h.
| ActorHandle superdex::ContactPoint::actorA = {} |
Handle of the colliding actor.
Definition at line 519 of file mochi_structs.h.
| ActorHandle superdex::ContactPoint::actorB = {} |
Handle of the collider actor.
Definition at line 521 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 523 of file mochi_structs.h.
| int superdex::ContactPoint::elementIndex = -1 |
Index of the triangle of actorA in Actor::GetSurfaceMesh, or in Actor::GetContactSkinMesh when contact uses the contact skin.
Definition at line 541 of file mochi_structs.h.
| Real3 superdex::ContactPoint::force = {} |
Contact force [N] applied to actorA from actorB in world frame.
Definition at line 531 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 539 of file mochi_structs.h.
| Real3 superdex::ContactPoint::normal = {} |
Contact normal in world frame pointing away from actorB.
Unit length.
Definition at line 529 of file mochi_structs.h.
| Real3 superdex::ContactPoint::parametricCoords = {} |
Parametric coordinates within the surface element of actorA.
Definition at line 543 of file mochi_structs.h.
| Real3 superdex::ContactPoint::pointVelocityA = {} |
Velocity [m/s] of the contact point on actorA in world frame.
Definition at line 533 of file mochi_structs.h.
| Real3 superdex::ContactPoint::pointVelocityB = {} |
Velocity [m/s] of the contact point on actorB in world frame.
Definition at line 535 of file mochi_structs.h.
| Real3 superdex::ContactPoint::posA = {} |
Contact position [m] on actorA in world frame.
Definition at line 525 of file mochi_structs.h.
| Real3 superdex::ContactPoint::posB = {} |
Approximate contact position [m] on actorB in world frame.
Definition at line 527 of file mochi_structs.h.
| int superdex::ContactPoint::sampleIndex = 0 |
Sample point index of actorA.
Definition at line 537 of file mochi_structs.h.