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

Options for ExportScene and ExportActor. More...

#include <mochi_prefab.h>

Public Attributes

DynamicArray< ActorHandle > excludeActors {}
 Handles of actors that ExportScene should not export.
bool exportCurrentPose = false
 Whether to export the current pose of soft, articulated, and rod actors.

Detailed Description

Options for ExportScene and ExportActor.

Definition at line 539 of file mochi_prefab.h.

Member Data Documentation

◆ excludeActors

DynamicArray<ActorHandle> superdex::prefab::ExportParams::excludeActors {}

Handles of actors that ExportScene should not export.

Excluding an articulated actor also excludes all of its nested link actors. Excluding a soft-skinned actor also excludes all of its nested link actors and nested soft actors. Any contact filter or contact-pair parameter override entries that reference excluded actors are dropped.

Note
Nested link and nested soft actor handles are rejected. Pass the top-level articulated or soft-skinned actor handle instead.
Ignored by ExportActor.

Definition at line 540 of file mochi_prefab.h.

◆ exportCurrentPose

bool superdex::prefab::ExportParams::exportCurrentPose = false

Whether to export the current pose of soft, articulated, and rod actors.

When true, the current elastic displacements of soft actors (including nested soft actors of soft-skinned actors) are written to SoftActorPrefab::nodeDisplacements, the current joint pose of articulated actors (including soft-skinned skeletons) is written to ArticulatedActorPrefab::jointPose, and the current node displacements and element frame axes of rod actors are written to RodActorPrefab::pose. Adding the exported prefab to a scene then restores that pose. Actors exactly at rest omit these fields.

Note
When false (the default), soft displacement, articulated joint pose, and rod pose fields are omitted. Actor transforms are exported regardless of this option.
Displacements of ROM soft actors are never exported.
Velocities (soft nodal, articulated joint, and rod) are never exported.
A prefab with exported soft displacements cannot be added to a scene with experimental::RomParams. Set this to false to export a prefab for that use.

Definition at line 541 of file mochi_prefab.h.


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