|
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. | |
| std::optional< DynamicArray< real > > | jointPose |
| Optional initial joint pose, one value per DoF in joint order. | |
| 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 171 of file mochi_prefab.h.
|
default |
| std::optional<DynamicString> superdex::prefab::ArticulatedActorPrefab::comment = std::nullopt |
Optional serialized comment.
Definition at line 172 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 177 of file mochi_prefab.h.
| std::optional<DynamicArray<real> > superdex::prefab::ArticulatedActorPrefab::jointPose |
Optional initial joint pose, one value per DoF in joint order.
Units depend on joint type: [rad] for revolute, [m] for prismatic, and a rotation vector [rad] for spherical joints and the rotational part of free joints. The translational part of free joints is in [m]. Translational DoFs scale with the articulated effective scale (scale times the effective prefab scale). Rotational DoFs are not scaled. Applied right after the actor is created, see Actor::SetArticulatedPoseFromJoints.
Definition at line 182 of file mochi_prefab.h.
| DynamicArray<ArticulatedJointPrefab> superdex::prefab::ArticulatedActorPrefab::joints |
Joint parameters (one per joint).
Definition at line 178 of file mochi_prefab.h.
| std::optional<DynamicArray<real> > superdex::prefab::ArticulatedActorPrefab::jointVelocities |
Optional initial velocity per DoF.
Definition at line 181 of file mochi_prefab.h.
| DynamicArray<ArticulatedLinkPrefab> superdex::prefab::ArticulatedActorPrefab::links |
Link parameters (one per link).
Definition at line 179 of file mochi_prefab.h.
| DynamicString superdex::prefab::ArticulatedActorPrefab::name |
Optional actor name.
Uniqueness is not enforced.
Definition at line 173 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 175 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 174 of file mochi_prefab.h.
| std::optional<ArticulatedSkinPrefab> superdex::prefab::ArticulatedActorPrefab::skin |
Optional skinned mesh parameters.
Definition at line 180 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 176 of file mochi_prefab.h.