29inline AddToSceneResult
38 std::string_view exportName,
39 std::string_view outputDir,
46 std::string_view exportName,
47 std::string_view outputDir,
Represents a simulated body (actor) in a scene.
Represents a simulation scene.
AddToSceneResult AddToScene(ScenePrefab const &prefab, Scene *scene, PrefabParams const ¶ms, Error &error)
Instantiate a ScenePrefab and add it to a Scene.
void ExportActor(Actor const *actor, std::string_view exportName, std::string_view outputDir, ExportParams const ¶ms, Error &error)
Export a single actor to a prefab file under outputDir/exportName/<exportName>.mochi_scene.
void ExportScene(Scene const *scene, std::string_view exportName, std::string_view outputDir, ExportParams const ¶ms, Error &error)
Export a Scene to a folder containing a prefab file and all generated mesh files.
Struct used to return all created actors and constraints from AddToScene.
Options for ExportScene and ExportActor.
Parameters for instantiating a ScenePrefab into a Scene.
Top-level prefab describing a complete or partial physics scene (possibly just one actor).