|
SuperDex Physics C++ API
|
Top-level prefab describing a complete or partial physics scene (possibly just one actor). More...
#include <mochi_prefab.h>
Public Member Functions | |
| bool | operator== (ScenePrefab const &) const =default |
Public Attributes | |
| ActorLists | actors {} |
| Lists of actors by type. | |
| std::optional< DynamicString > | comment = std::nullopt |
| Optional serialized comment. | |
| ConstraintLists | constraints {} |
| Lists of constraints by type. | |
| std::optional< ContactFilter > | contactFilter = std::nullopt |
| Contact filter settings for selective contact filtering. | |
| std::optional< DynamicArray< ContactPairParamsOverrideEntry > > | contactPairParamsOverrides |
| Optional actor-pair contact parameter overrides. | |
| DynamicArray< PoseControllerPrefab > | controllers {} |
| List of pose controllers. | |
| DynamicArray< PrefabReference > | prefabs {} |
| List of nested prefab references. | |
| std::optional< SceneParams > | scene = std::nullopt |
| Global scene parameters (top-level prefab only). | |
| std::optional< DynamicString > | sourceFilePath = std::nullopt |
| Path this prefab was loaded from, exactly as passed to the loading function. | |
Top-level prefab describing a complete or partial physics scene (possibly just one actor).
Definition at line 443 of file mochi_prefab.h.
|
default |
| ActorLists superdex::prefab::ScenePrefab::actors {} |
Lists of actors by type.
Definition at line 445 of file mochi_prefab.h.
| std::optional<DynamicString> superdex::prefab::ScenePrefab::comment = std::nullopt |
Optional serialized comment.
Definition at line 444 of file mochi_prefab.h.
| ConstraintLists superdex::prefab::ScenePrefab::constraints {} |
Lists of constraints by type.
Definition at line 446 of file mochi_prefab.h.
| std::optional<ContactFilter> superdex::prefab::ScenePrefab::contactFilter = std::nullopt |
Contact filter settings for selective contact filtering.
Definition at line 451 of file mochi_prefab.h.
| std::optional<DynamicArray<ContactPairParamsOverrideEntry> > superdex::prefab::ScenePrefab::contactPairParamsOverrides |
Optional actor-pair contact parameter overrides.
Entries are applied in array order after all actors in their prefab have been created. A later entry for the same unordered actor pair replaces the earlier override rather than merging with it. Nested child prefab entries are applied before parent entries.
Definition at line 452 of file mochi_prefab.h.
| DynamicArray<PoseControllerPrefab> superdex::prefab::ScenePrefab::controllers {} |
List of pose controllers.
Definition at line 447 of file mochi_prefab.h.
| DynamicArray<PrefabReference> superdex::prefab::ScenePrefab::prefabs {} |
List of nested prefab references.
Definition at line 448 of file mochi_prefab.h.
| std::optional<SceneParams> superdex::prefab::ScenePrefab::scene = std::nullopt |
Global scene parameters (top-level prefab only).
Definition at line 449 of file mochi_prefab.h.
| std::optional<DynamicString> superdex::prefab::ScenePrefab::sourceFilePath = std::nullopt |
Path this prefab was loaded from, exactly as passed to the loading function.
Used to resolve prefab-relative ("./"-prefixed) nested prefab and shape paths.
Definition at line 450 of file mochi_prefab.h.