|
SuperDex Physics C++ API
|
Prefab parameters for an articulated actor. More...
#include <mochi_prefab.h>
Public Member Functions | |
| bool | operator== (ArticulatedActorPrefab const &) const =default |
Public Attributes | |
| std::optional< DynamicString > | comment = std::nullopt |
| Optional serialized comment. | |
| DynamicArray< ArticulatedCycleJointParams > | cycles |
| Cycle joints creating closed kinematic loops. | |
| DynamicArray< ArticulatedJointPrefab > | joints |
| Joint parameters (one per joint). | |
| std::optional< DynamicArray< real > > | jointVelocities |
| Optional initial velocity per DoF. | |
| DynamicArray< ArticulatedLinkPrefab > | links |
| Link parameters (one per link). | |
| DynamicString | name |
| Optional actor name. | |
| Quaternion | rotation |
| Actor rotation quaternion [x, y, z, w] relative to the prefab's local frame (i.e., the prefab-from-root rotation). | |
| real | scale = 1_r |
| Uniform scale baked into all link and skin shapes when the prefab is instantiated. | |
| std::optional< ArticulatedSkinPrefab > | skin |
| Optional skinned mesh parameters. | |
| Real3 | translation = {} |
| Actor translation [x, y, z] relative to the prefab's local frame (i.e., the prefab-from-root translation). | |
Prefab parameters for an articulated actor.
Definition at line 138 of file mochi_prefab.h.
|
default |
| std::optional<DynamicString> superdex::prefab::ArticulatedActorPrefab::comment = std::nullopt |
Optional serialized comment.
Definition at line 139 of file mochi_prefab.h.
| DynamicArray<ArticulatedCycleJointParams> superdex::prefab::ArticulatedActorPrefab::cycles |
Cycle joints creating closed kinematic loops.
Empty if no cycles exist.
Definition at line 144 of file mochi_prefab.h.
| DynamicArray<ArticulatedJointPrefab> superdex::prefab::ArticulatedActorPrefab::joints |
Joint parameters (one per joint).
Definition at line 145 of file mochi_prefab.h.
| std::optional<DynamicArray<real> > superdex::prefab::ArticulatedActorPrefab::jointVelocities |
Optional initial velocity per DoF.
Definition at line 148 of file mochi_prefab.h.
| DynamicArray<ArticulatedLinkPrefab> superdex::prefab::ArticulatedActorPrefab::links |
Link parameters (one per link).
Definition at line 146 of file mochi_prefab.h.
| DynamicString superdex::prefab::ArticulatedActorPrefab::name |
Optional actor name.
Uniqueness is not enforced.
Definition at line 140 of file mochi_prefab.h.
| Quaternion superdex::prefab::ArticulatedActorPrefab::rotation |
Actor rotation quaternion [x, y, z, w] relative to the prefab's local frame (i.e., the prefab-from-root rotation).
Composes with PrefabParams::rotation to produce the final world-from-root rotation.
Definition at line 142 of file mochi_prefab.h.
| real superdex::prefab::ArticulatedActorPrefab::scale = 1_r |
Uniform scale baked into all link and skin shapes when the prefab is instantiated.
Definition at line 141 of file mochi_prefab.h.
| std::optional<ArticulatedSkinPrefab> superdex::prefab::ArticulatedActorPrefab::skin |
Optional skinned mesh parameters.
Definition at line 147 of file mochi_prefab.h.
| Real3 superdex::prefab::ArticulatedActorPrefab::translation = {} |
Actor translation [x, y, z] relative to the prefab's local frame (i.e., the prefab-from-root translation).
Composes with PrefabParams::scale, PrefabParams::rotation, and PrefabParams::translation to produce the final world-from-root translation.
Definition at line 143 of file mochi_prefab.h.