SuperDex Physics C++ API
Loading...
Searching...
No Matches
mochi_prefab.h File Reference

Go to the source code of this file.

Classes

struct  superdex::prefab::ActorContactEntry
 Used by ContactFilter to enable or disable contact for a pair of actors. More...
struct  superdex::prefab::ActorLists
 Lists of actors grouped by type. More...
struct  superdex::prefab::AddToSceneResult
 Struct used to return all created actors and constraints from AddToScene. More...
struct  superdex::prefab::Articulated3dRotationRangeConstraintPrefab
 Prefab parameters for a Articulated3dRotationRangeConstraintParams. More...
struct  superdex::prefab::Articulated3dRotationTargetConstraintPrefab
 Prefab parameters for a Articulated3dRotationTargetConstraintParams. More...
struct  superdex::prefab::ArticulatedActorPrefab
 Prefab parameters for an articulated actor. More...
struct  superdex::prefab::ArticulatedJointPrefab
 Joint parameters for an articulated actor prefab. More...
struct  superdex::prefab::ArticulatedLinkPrefab
 Link parameters for an articulated actor prefab. More...
struct  superdex::prefab::ArticulatedSingleDofRangeConstraintPrefab
 Prefab parameters for a ArticulatedSingleDofRangeConstraintParams. More...
struct  superdex::prefab::ArticulatedSingleDofTargetConstraintPrefab
 Prefab parameters for a ArticulatedSingleDofTargetConstraintParams. More...
struct  superdex::prefab::ArticulatedSkinPrefab
 Skin parameters for an articulated actor prefab. More...
struct  superdex::prefab::ConstraintLists
 Lists of constraints grouped by type. More...
struct  superdex::prefab::ContactFilter
 Contact filtering parameters for a prefab. More...
struct  superdex::prefab::DeformableNodePositionConstraintPrefab
 Prefab parameters for a DeformableNodePositionConstraintParams. More...
struct  superdex::prefab::DeformableNodeToDeformableNodeConstraintPrefab
 Prefab parameters for a DeformableNodeToDeformableNodeConstraintParams. More...
struct  superdex::prefab::DeformableNodeToRigidConstraintPrefab
 Prefab parameters for a DeformableNodeToRigidConstraintParams. More...
struct  superdex::prefab::JointRotationRangeConstraintPrefab
 Prefab parameters for a JointRotationRangeConstraintParams. More...
struct  superdex::prefab::JointRotationTrackingConstraintPrefab
 Prefab parameters for a JointRotationTrackingConstraintParams. More...
struct  superdex::prefab::LayerContactEntry
 Used by ContactFilter to enable or disable contact for a pair of layers. More...
struct  superdex::prefab::PoseControllerPrefab
 Prefab parameters for an articulated pose controller. More...
struct  superdex::prefab::PrefabParams
 Parameters for instantiating a ScenePrefab into a Scene. More...
struct  superdex::prefab::PrefabReference
 Reference to another prefab file (scene or actor) for prefab nesting. More...
struct  superdex::prefab::RigidActorPrefab
 Prefab parameters for a rigid actor. More...
struct  superdex::prefab::RigidPivotPositionConstraintPrefab
 Prefab parameters for a RigidPivotPositionConstraintParams. More...
struct  superdex::prefab::RigidPivotRotationConstraintPrefab
 Prefab parameters for a RigidPivotRotationConstraintParams. More...
struct  superdex::prefab::RigidPivotToRigidTargetConstraintPrefab
 Prefab parameters for a RigidPivotToRigidTargetConstraintParams. More...
struct  superdex::prefab::RigidPrismaticJointConstraintPrefab
 Prefab parameters for a RigidPrismaticJointConstraintParams. More...
struct  superdex::prefab::RigidSphericalJointConstraintPrefab
 Prefab parameters for a RigidSphericalJointConstraintParams. More...
struct  superdex::prefab::SceneParams
 Parameters that are global to the Scene in which this prefab will be instantiated. More...
struct  superdex::prefab::ScenePrefab
 Top-level prefab describing a complete or partial physics scene (possibly just one actor). More...
struct  superdex::prefab::SoftActorPrefab
 Prefab parameters for a soft actor. More...
struct  superdex::prefab::SoftSkinnedActorPrefab
 Prefab parameters for a soft skinned actor. More...

Namespaces

namespace  superdex
namespace  superdex::prefab

Functions

AddToSceneResult superdex::prefab::AddToScene (ScenePrefab const &prefab, Scene *scene, Error &error)
 Overload of AddToScene that instantiates a ScenePrefab using default PrefabParams.
AddToSceneResult superdex::prefab::AddToScene (ScenePrefab const &prefab, Scene *scene, PrefabParams const &params, Error &error)
 Instantiate a ScenePrefab and add it to a Scene.
AddToSceneResult superdex::prefab::AddToScene (std::string_view prefabPath, std::string_view rootPath, Scene *scene, Error &error)
 Overload of AddToScene that loads a prefab from a file and instantiates it using default PrefabParams.
AddToSceneResult superdex::prefab::AddToScene (std::string_view prefabPath, std::string_view rootPath, Scene *scene, PrefabParams const &params, Error &error)
 Load a scene prefab from a file and create an instance of it in the Scene.
void superdex::prefab::EnsureFullyLoaded (ScenePrefab &prefab, std::string_view rootPath, Context *context, Error &error)
 Ensure that all nested prefabs and shape files are loaded, skipping any that are already loaded.
void superdex::prefab::ExportActor (Actor const *actor, std::string_view exportName, std::string_view outputDir, Error &error)
 Export a single actor to a prefab file under outputDir/exportName/<exportName>.mochi_scene.
void superdex::prefab::ExportScene (Scene const *scene, std::string_view exportName, std::string_view outputDir, Error &error)
 Export a Scene to a folder containing a prefab file and all generated mesh files.
void superdex::prefab::ExportSceneExcluding (Scene const *scene, std::string_view exportName, std::string_view outputDir, Span< ActorHandle const > excludeActors, Error &error)
 Export a Scene to a folder containing a prefab file and all generated mesh files, omitting a caller-provided set of actors.
DynamicString superdex::prefab::GetPrefabFullPath (std::string_view inputPath, std::string_view rootForRelativePath, std::string_view prefabFilePath)
 Resolve a path referenced inside a prefab to a full path.
ScenePrefab superdex::prefab::LoadFromFile (std::string_view prefabPath, std::string_view rootPath, Context *context, Error &error)
 Fully load a ScenePrefab from a file, including all nested prefabs and shapes.
ScenePrefab superdex::prefab::LoadFromJsonString (std::string_view json, std::string_view rootPath, Context *context, Error &error)
 Fully load a ScenePrefab from a JSON string, including all nested prefabs and shapes.
void superdex::prefab::LoadNestedPrefabs (ScenePrefab &prefab, std::string_view rootPath, Error &error)
 Load nested prefab files recursively.
void superdex::prefab::LoadShapes (ScenePrefab &prefab, std::string_view rootPath, Context *context, Error &error)
 Load shape files referenced by prefab and its loaded nested prefabs.
void superdex::prefab::SaveToJsonFile (ScenePrefab const &prefab, std::string_view path, Error &error)
 Serialize a ScenePrefab to a JSON file.
DynamicString superdex::prefab::SaveToJsonString (ScenePrefab const &prefab, Error &error)
 Serialize a ScenePrefab to a JSON string.
ScenePrefab superdex::prefab::ShallowLoadFromFile (std::string_view path, Error &error)
 Deserialize a single ScenePrefab from a file, without loading any nested files.
ScenePrefab superdex::prefab::ShallowLoadFromJsonString (std::string_view json, Error &error)
 Deserialize a single ScenePrefab from a JSON string, without loading any nested files.