SuperDex Physics C++ API
Loading...
Searching...
No Matches
superdex::DeformableNodePositionConstraintParams Struct Reference

Parameters for creating a position constraint on a deformable actor node. More...

#include <mochi_structs.h>

Inheritance diagram for superdex::DeformableNodePositionConstraintParams:
superdex::ConstraintParams superdex::prefab::DeformableNodePositionConstraintPrefab

Public Member Functions

bool operator== (DeformableNodePositionConstraintParams const &) const =default
Public Member Functions inherited from superdex::ConstraintParams
bool operator== (ConstraintParams const &) const =default

Public Attributes

ActorHandle actor {}
 Actor handle identifying the deformable actor.
int nodeIndex = -1
 Node index in the deformable actor's reference simulation mesh, as returned by Actor::GetMesh.
Real3 position {}
 Target position for the node in world frame [m].
Public Attributes inherited from superdex::ConstraintParams
real damping = 0_r
 Constraint damping coefficient.
real saturation = -1_r
 Saturation distance [m] or angle [rad].
real stiffness = 1e6_r
 Constraint stiffness coefficient.

Detailed Description

Parameters for creating a position constraint on a deformable actor node.

See also
Scene::CreateDeformableNodePositionConstraint, ConstraintType::DeformableNodePosition

Definition at line 379 of file mochi_structs.h.

Member Function Documentation

◆ operator==()

bool superdex::DeformableNodePositionConstraintParams::operator== ( DeformableNodePositionConstraintParams const & ) const
default

Member Data Documentation

◆ actor

ActorHandle superdex::DeformableNodePositionConstraintParams::actor {}

Actor handle identifying the deformable actor.

Definition at line 384 of file mochi_structs.h.

◆ nodeIndex

int superdex::DeformableNodePositionConstraintParams::nodeIndex = -1

Node index in the deformable actor's reference simulation mesh, as returned by Actor::GetMesh.

Must identify a node in that mesh.

Definition at line 380 of file mochi_structs.h.

◆ position

Real3 superdex::DeformableNodePositionConstraintParams::position {}

Target position for the node in world frame [m].

Definition at line 382 of file mochi_structs.h.


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