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

Prefab parameters for a soft skinned actor. More...

#include <mochi_prefab.h>

Public Member Functions

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

Public Attributes

std::optional< DynamicStringcomment = std::nullopt
 Optional serialized comment.
bool enableCollidingLinks = false
 Whether links can collide with each other.
bool hasGravity = false
 Whether gravity is applied.
bool hasInertia = false
 Whether inertia is applied.
bool hasStress = false
 Whether soft material stress is applied.
ArticulatedActorPrefab skeletonParams {}
 Articulated actor parameters for the skeleton.
DynamicArray< DynamicStringsoftAttachLinks {}
 Local link names to attach each soft actor to.
DynamicArray< SoftActorPrefabsoftParams {}
 Soft body parameters, one per soft actor.

Detailed Description

Prefab parameters for a soft skinned actor.

A soft skinned actor consists of an articulated skeleton with one or more attached soft bodies.

Definition at line 153 of file mochi_prefab.h.

Member Function Documentation

◆ operator==()

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

Member Data Documentation

◆ comment

std::optional<DynamicString> superdex::prefab::SoftSkinnedActorPrefab::comment = std::nullopt

Optional serialized comment.

Definition at line 154 of file mochi_prefab.h.

◆ enableCollidingLinks

bool superdex::prefab::SoftSkinnedActorPrefab::enableCollidingLinks = false

Whether links can collide with each other.

Definition at line 158 of file mochi_prefab.h.

◆ hasGravity

bool superdex::prefab::SoftSkinnedActorPrefab::hasGravity = false

Whether gravity is applied.

Definition at line 159 of file mochi_prefab.h.

◆ hasInertia

bool superdex::prefab::SoftSkinnedActorPrefab::hasInertia = false

Whether inertia is applied.

Definition at line 160 of file mochi_prefab.h.

◆ hasStress

bool superdex::prefab::SoftSkinnedActorPrefab::hasStress = false

Whether soft material stress is applied.

Definition at line 161 of file mochi_prefab.h.

◆ skeletonParams

ArticulatedActorPrefab superdex::prefab::SoftSkinnedActorPrefab::skeletonParams {}

Articulated actor parameters for the skeleton.

Definition at line 155 of file mochi_prefab.h.

◆ softAttachLinks

DynamicArray<DynamicString> superdex::prefab::SoftSkinnedActorPrefab::softAttachLinks {}

Local link names to attach each soft actor to.

Empty or one entry per softParams element.

Note
If provided, each entry must be non-empty and must match a skeleton link local name.

Definition at line 157 of file mochi_prefab.h.

◆ softParams

DynamicArray<SoftActorPrefab> superdex::prefab::SoftSkinnedActorPrefab::softParams {}

Soft body parameters, one per soft actor.

Note
The per-soft-actor SoftActorPrefab::rotation and SoftActorPrefab::translation fields are ignored. Soft actor transforms are determined by the skeleton's link attachments (see softAttachLinks).
Each per-soft-actor SoftActorPrefab::scale must be uniform (three equal, strictly positive, finite values). Non-uniform soft shape scale is not supported for soft-skinned prefabs.
If a per-soft-actor SoftActorPrefab::flowFile is set, that entry's SoftActorPrefab::scale must be (1, 1, 1).
Each entry's inherited name field is a nested soft local name. Explicit non-empty names must be unique across skeleton link local names and other nested soft local names, and must not contain forward slash, backslash, or embedded NUL characters.
Empty names are assigned deterministically after reserving all skeleton link names and all explicit nested soft names: an empty entry at index i uses soft_i if available; otherwise it uses the first available soft_N found by scanning upward from N = 0.

Definition at line 156 of file mochi_prefab.h.


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