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

Parameters to create a rod actor. More...

#include <mochi_structs.h>

Inheritance diagram for superdex::RodActorParams:
superdex::prefab::RodActorPrefab

Public Member Functions

bool operator== (RodActorParams const &) const =default

Public Attributes

ColliderType colliderType = ColliderType::None
 Collider type.
ContactParams contact
 Contact properties for interactions with volume actors.
ActorSegmentElementType contactElementType = ActorSegmentElementType::Default
 Element type controlling the number of contact samples per segment.
ActorBoundaryElementType contactSkinElementType = ActorBoundaryElementType::Default
 Triangle element type for contact-skin quadrature.
bool hasGravity = true
 Enables gravity.
DynamicString layer
 Contact layer name.
RodMaterialParams material = {}
 Rod material properties.
DynamicString name
 Actor name.
PointCloudColliderParams pointCloudCollider = {}
 Geometric and logical properties of the point-cloud collider.
ShapeHandle shape
 Shape handle defining the rod geometry.
bool useContactSkin = false
 Use the rod shape's contact skin for contact instead of its centerline.
TransformRT worldFromLocal = TransformRT::Identity()
 World-from-local transform applied to the shape.

Detailed Description

Parameters to create a rod actor.

A rod actor is a 1D deformable body whose geometry is a polyline.

See also
Scene::CreateRodActor

Definition at line 250 of file mochi_structs.h.

Member Function Documentation

◆ operator==()

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

Member Data Documentation

◆ colliderType

ColliderType superdex::RodActorParams::colliderType = ColliderType::None

Collider type.

Set to ColliderType::PointCloud or ColliderType::Auto to enable point-cloud contact.

Note
Only ColliderType::None, ColliderType::PointCloud, and ColliderType::Auto are supported.

Definition at line 265 of file mochi_structs.h.

◆ contact

ContactParams superdex::RodActorParams::contact

Contact properties for interactions with volume actors.

Definition at line 259 of file mochi_structs.h.

◆ contactElementType

ActorSegmentElementType superdex::RodActorParams::contactElementType = ActorSegmentElementType::Default

Element type controlling the number of contact samples per segment.

Definition at line 261 of file mochi_structs.h.

◆ contactSkinElementType

ActorBoundaryElementType superdex::RodActorParams::contactSkinElementType = ActorBoundaryElementType::Default

Triangle element type for contact-skin quadrature.

Note
RodActorParams::contactElementType controls centerline sampling instead.

Definition at line 273 of file mochi_structs.h.

◆ hasGravity

bool superdex::RodActorParams::hasGravity = true

Enables gravity.

Definition at line 269 of file mochi_structs.h.

◆ layer

DynamicString superdex::RodActorParams::layer

Contact layer name.

Definition at line 253 of file mochi_structs.h.

◆ material

RodMaterialParams superdex::RodActorParams::material = {}

Rod material properties.

Definition at line 263 of file mochi_structs.h.

◆ name

DynamicString superdex::RodActorParams::name

Actor name.

Definition at line 251 of file mochi_structs.h.

◆ pointCloudCollider

PointCloudColliderParams superdex::RodActorParams::pointCloudCollider = {}

Geometric and logical properties of the point-cloud collider.

Definition at line 267 of file mochi_structs.h.

◆ shape

ShapeHandle superdex::RodActorParams::shape

Shape handle defining the rod geometry.

Must be a polyline shape.

Note
Each element's frame axis is interpreted as one cross-sectional principal axis (the other is the cross product of the segment direction and that axis); the flexural stiffness components are defined with respect to these axes.
A rod actor uses a visual mesh only when the shape has embedding data. For shapes created from ModelData, the embedding is built from the skinning data in ModelData::visualMesh. Without visual-mesh skinning, Context::GetShapeVisualMesh still returns the shape's visual mesh, but the rod actor ignores it: Actor::GetVisualMesh returns an empty view, and QueryType::VisualNodePositions and QueryType::VisualNodeNormals are unsupported.
Setting useContactSkin to true requires ModelData::contactSkinMesh.

Definition at line 257 of file mochi_structs.h.

◆ useContactSkin

bool superdex::RodActorParams::useContactSkin = false

Use the rod shape's contact skin for contact instead of its centerline.

Actor creation fails if the shape does not have a contact skin.

Note
The contact skin is exposed through Actor::GetContactSkinMesh and QueryType::ContactSkinNodePositions / QueryType::ContactSkinNodeNormals independently of this flag.

Definition at line 271 of file mochi_structs.h.

◆ worldFromLocal

TransformRT superdex::RodActorParams::worldFromLocal = TransformRT::Identity()

World-from-local transform applied to the shape.

Definition at line 255 of file mochi_structs.h.


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