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

Skin parameters for an articulated actor prefab. More...

#include <mochi_prefab.h>

Inheritance diagram for superdex::prefab::ArticulatedSkinPrefab:
superdex::ArticulatedSkinParams

Public Member Functions

bool operator== (ArticulatedSkinPrefab const &) const =default
Public Member Functions inherited from superdex::ArticulatedSkinParams
bool operator== (ArticulatedSkinParams const &) const =default

Public Attributes

DynamicString renderModelFile
 Optional path to a render model file (e.g.
Quaternion renderModelRotation
 Rotation quaternion [x, y, z, w] to apply to the render model.
Real3 renderModelScale = {1_r, 1_r, 1_r}
 Scale [x, y, z] to apply to the render model.
Real3 renderModelTranslation = {}
 Translation [x, y, z] to apply to the render model.
DynamicString shapeFile
 Path to the model file containing a skinned mesh.
Public Attributes inherited from superdex::ArticulatedSkinParams
ActorBoundaryElementType boundaryElementType = ActorBoundaryElementType::Default
 Finite element type for boundary discretization.
std::optional< BoundarySubsamplingParamsboundarySubsampling
 Optional subsampling for boundary integrals such as contact.
ContactParams contact
 Contact mechanics parameters.
DynamicString layer
 Contact layer name for filtering contacts between actors.
ShapeHandle shape
 Shape handle defining the skinned triangle mesh.

Detailed Description

Skin parameters for an articulated actor prefab.

Extends ArticulatedSkinParams. The inherited ArticulatedSkinParams::shape (a runtime ShapeHandle) is replaced by shapeFile (a path serialized to JSON. The shape is loaded at instantiation time).

Definition at line 122 of file mochi_prefab.h.

Member Function Documentation

◆ operator==()

bool superdex::prefab::ArticulatedSkinPrefab::operator== ( ArticulatedSkinPrefab const & ) const
default

Member Data Documentation

◆ renderModelFile

DynamicString superdex::prefab::ArticulatedSkinPrefab::renderModelFile

Optional path to a render model file (e.g.

.glb) for visualization.

Note
SuperDex Physics does not use this field for simulation. It provides additional metadata for visualization in supported tools. Ignored if empty.

Definition at line 130 of file mochi_prefab.h.

◆ renderModelRotation

Quaternion superdex::prefab::ArticulatedSkinPrefab::renderModelRotation

Rotation quaternion [x, y, z, w] to apply to the render model.

Note
Ignored if renderModelFile is empty.

Definition at line 132 of file mochi_prefab.h.

◆ renderModelScale

Real3 superdex::prefab::ArticulatedSkinPrefab::renderModelScale = {1_r, 1_r, 1_r}

Scale [x, y, z] to apply to the render model.

Note
Ignored if renderModelFile is empty.

Definition at line 131 of file mochi_prefab.h.

◆ renderModelTranslation

Real3 superdex::prefab::ArticulatedSkinPrefab::renderModelTranslation = {}

Translation [x, y, z] to apply to the render model.

Note
Ignored if renderModelFile is empty.

Definition at line 133 of file mochi_prefab.h.

◆ shapeFile

DynamicString superdex::prefab::ArticulatedSkinPrefab::shapeFile

Path to the model file containing a skinned mesh.

Definition at line 123 of file mochi_prefab.h.


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