|
SuperDex Physics C++ API
|
Parameters that are global to the Scene in which this prefab will be instantiated. More...
#include <mochi_prefab.h>
Public Member Functions | |
| bool | operator== (SceneParams const &) const =default |
Public Attributes | |
| std::optional< DynamicString > | comment = std::nullopt |
| Optional serialized comment. | |
| DynamicString | description {} |
| Human-readable description of the scene. | |
| std::optional< Real3 > | gravity = std::nullopt |
| Optional gravity vector [m/s^2] in world frame. | |
| std::optional< SolverParams > | solver = std::nullopt |
| Optional solver parameters. | |
Parameters that are global to the Scene in which this prefab will be instantiated.
Definition at line 38 of file mochi_prefab.h.
|
default |
| std::optional<DynamicString> superdex::prefab::SceneParams::comment = std::nullopt |
Optional serialized comment.
Definition at line 39 of file mochi_prefab.h.
| DynamicString superdex::prefab::SceneParams::description {} |
Human-readable description of the scene.
Definition at line 40 of file mochi_prefab.h.
| std::optional<Real3> superdex::prefab::SceneParams::gravity = std::nullopt |
Optional gravity vector [m/s^2] in world frame.
AddToScene replaces the scene's gravity only when this value is provided by the top-level prefab and PrefabParams::applySceneSettings is true. Otherwise, the existing scene gravity is preserved.
Definition at line 41 of file mochi_prefab.h.
| std::optional<SolverParams> superdex::prefab::SceneParams::solver = std::nullopt |
Optional solver parameters.
AddToScene replaces the scene's complete solver parameters only when this value is provided by the top-level prefab and PrefabParams::applySceneSettings is true. In all other cases, the existing scene solver parameters are preserved. When replacement occurs, fields omitted from the solver object use their default values, e.g. "solver": {} resets all solver parameters to their defaults.
Definition at line 42 of file mochi_prefab.h.