|
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 in the mesh used for colliding samples on 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 456 of file mochi_structs.h.
| ActorHandle superdex::ContactPoint::actorA = {} |
Handle of the colliding actor.
Definition at line 457 of file mochi_structs.h.
| ActorHandle superdex::ContactPoint::actorB = {} |
Handle of the collider actor.
Definition at line 459 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 461 of file mochi_structs.h.
| int superdex::ContactPoint::elementIndex = -1 |
Element index in the mesh used for colliding samples on actorA.
Definition at line 479 of file mochi_structs.h.
| Real3 superdex::ContactPoint::force = {} |
Contact force [N] applied to actorA from actorB in world frame.
Definition at line 469 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 477 of file mochi_structs.h.
| Real3 superdex::ContactPoint::normal = {} |
Contact normal in world frame pointing away from actorB.
Unit length.
Definition at line 467 of file mochi_structs.h.
| Real3 superdex::ContactPoint::parametricCoords = {} |
Parametric coordinates within the surface element of actorA.
Definition at line 481 of file mochi_structs.h.
| Real3 superdex::ContactPoint::pointVelocityA = {} |
Velocity [m/s] of the contact point on actorA in world frame.
Definition at line 471 of file mochi_structs.h.
| Real3 superdex::ContactPoint::pointVelocityB = {} |
Velocity [m/s] of the contact point on actorB in world frame.
Definition at line 473 of file mochi_structs.h.
| Real3 superdex::ContactPoint::posA = {} |
Contact position [m] on actorA in world frame.
Definition at line 463 of file mochi_structs.h.
| Real3 superdex::ContactPoint::posB = {} |
Approximate contact position [m] on actorB in world frame.
Definition at line 465 of file mochi_structs.h.
| int superdex::ContactPoint::sampleIndex = 0 |
Sample point index of actorA.
Definition at line 475 of file mochi_structs.h.