|
SuperDex Physics C++ API
|
Reference to another prefab file (scene or actor) for prefab nesting. More...
#include <mochi_prefab.h>
Public Member Functions | |
| bool | operator== (PrefabReference const &) const =default |
Public Attributes | |
| std::optional< DynamicString > | comment = std::nullopt |
| Optional serialized comment. | |
| DynamicString | name {} |
| Name of the nested prefab instance. | |
| DynamicString | path {} |
| File path of the nested prefab. | |
| PrefabHandle | prefab {} |
| Handle to the loaded nested prefab. | |
| Quaternion | rotation {} |
| Rotation quaternion [x, y, z, w] of the nested prefab in the parent's local space. | |
| real | scale = 1_r |
| Uniform scale of the nested prefab, relative to the parent prefab. | |
| Real3 | translation {} |
| Translation [x, y, z] of the nested prefab in the parent's local space. | |
Reference to another prefab file (scene or actor) for prefab nesting.
Definition at line 279 of file mochi_prefab.h.
|
default |
| std::optional<DynamicString> superdex::prefab::PrefabReference::comment = std::nullopt |
Optional serialized comment.
Definition at line 280 of file mochi_prefab.h.
| DynamicString superdex::prefab::PrefabReference::name {} |
Name of the nested prefab instance.
Used to format the names of nested actors in the form "prefabName/actorName".
Definition at line 281 of file mochi_prefab.h.
| DynamicString superdex::prefab::PrefabReference::path {} |
File path of the nested prefab.
Definition at line 282 of file mochi_prefab.h.
| PrefabHandle superdex::prefab::PrefabReference::prefab {} |
Handle to the loaded nested prefab.
Runtime state, populated at load time and never serialized.
Definition at line 288 of file mochi_prefab.h.
| Quaternion superdex::prefab::PrefabReference::rotation {} |
Rotation quaternion [x, y, z, w] of the nested prefab in the parent's local space.
Definition at line 284 of file mochi_prefab.h.
| real superdex::prefab::PrefabReference::scale = 1_r |
Uniform scale of the nested prefab, relative to the parent prefab.
The scale applied to this nested prefab is this value multiplied by PrefabParams::scale and each enclosing PrefabReference::scale. See PrefabParams::scale for what scaling affects.
Definition at line 283 of file mochi_prefab.h.
| Real3 superdex::prefab::PrefabReference::translation {} |
Translation [x, y, z] of the nested prefab in the parent's local space.
Definition at line 285 of file mochi_prefab.h.