|
SuperDex Physics C++ API
|
Prefab parameters for a soft actor. More...
#include <mochi_prefab.h>
Public Member Functions | |
| bool | operator== (SoftActorPrefab const &) const =default |
| Public Member Functions inherited from superdex::SoftActorParams | |
| bool | operator== (SoftActorParams const &) const =default |
Public Attributes | |
| ColliderType | colliderType = ColliderType::None |
| [Experimental] Collision detection geometry. | |
| std::optional< DynamicString > | comment = std::nullopt |
| Optional serialized comment. | |
| ShapeHandle | flow |
| [Experimental] Optional deep flow shape handle loaded from flowFile. | |
| DynamicString | flowFile {} |
| [Experimental] Optional path to a deep flow shape handle for collision detection. | |
| std::optional< DynamicArray< real > > | nodeDisplacements |
| Optional initial nodal displacements in model space, flattened as [x0, y0, z0, x1, y1, z1, ...]. | |
| DynamicString | renderModelFile |
| Optional path to a render model file (e.g. | |
| Quaternion | renderModelRotation |
| Rotation quaternion [x, y, z, w] to apply to the render model. | |
| Real3 | renderModelScale = {1_r, 1_r, 1_r} |
| Scale [x, y, z] to apply to the render model. | |
| Real3 | renderModelTranslation = {} |
| Translation [x, y, z] to apply to the render model. | |
| Quaternion | rotation {} |
| Actor rotation quaternion [x, y, z, w] relative to the prefab's local frame (i.e., the prefab-from-local rotation). | |
| Real3 | scale {1_r, 1_r, 1_r} |
| Scale [x, y, z] to bake into the shape file. | |
| GridSdfParams | sdf |
| [Experimental] Parameters used to construct a grid-based Signed Distance Field (SDF) from the shape's surface mesh. | |
| DynamicString | shapeFile {} |
| Path to a model file that will be loaded and referenced via ShapeHandle. | |
| Quaternion | shapeRotation {} |
| Rotation quaternion [x, y, z, w] to bake into the shape file. | |
| Real3 | shapeTranslation {} |
| Translation [x, y, z] to bake into the shape file. | |
| Real3 | translation {} |
| Actor translation [x, y, z] relative to the prefab's local frame (i.e., the prefab-from-local translation). | |
| bool | useRecentering = true |
| [Experimental] Enable automatic recentering of the local coordinate system. | |
| Public Attributes inherited from superdex::SoftActorParams | |
| ActorBoundaryElementType | boundaryElementType = ActorBoundaryElementType::Default |
| Finite element type for contact discretization. | |
| ContactParams | contact |
| Contact mechanics parameters. | |
| bool | hasGravity = true |
| If true, actor is affected by gravity. | |
| bool | hasInertia = true |
| If true, actor is affected by inertial forces. | |
| bool | hasStress = true |
| If true, actor is affected by internal stress/strain forces. | |
| DynamicString | layer |
| Contact layer name for filtering contacts between actors. | |
| SoftMaterialParams | material = {} |
| Uniform material properties. | |
| DynamicString | name |
| Optional actor name. | |
| ShapeHandle | shape |
| Shape handle defining the actor's geometry and other metadata. | |
| bool | useContactSkin = false |
| [Experimental] Use the shape's authored contact skin for colliding contact samples. | |
| TransformRT | worldFromLocal |
| Initial rotation and translation of the actor's local frame with respect to world frame. | |
Prefab parameters for a soft actor.
Extends SoftActorParams. The inherited SoftActorParams::worldFromLocal is replaced by the prefab-relative rotation and translation fields, and the inherited SoftActorParams::shape (a runtime ShapeHandle) is replaced by shapeFile (a path serialized to JSON. The shape is loaded at instantiation time).
Definition at line 108 of file mochi_prefab.h.
|
default |
| ColliderType superdex::prefab::SoftActorPrefab::colliderType = ColliderType::None |
[Experimental] Collision detection geometry.
Definition at line 111 of file mochi_prefab.h.
| std::optional<DynamicString> superdex::prefab::SoftActorPrefab::comment = std::nullopt |
Optional serialized comment.
Definition at line 109 of file mochi_prefab.h.
| ShapeHandle superdex::prefab::SoftActorPrefab::flow |
[Experimental] Optional deep flow shape handle loaded from flowFile.
Definition at line 114 of file mochi_prefab.h.
| DynamicString superdex::prefab::SoftActorPrefab::flowFile {} |
[Experimental] Optional path to a deep flow shape handle for collision detection.
Definition at line 113 of file mochi_prefab.h.
| std::optional<DynamicArray<real> > superdex::prefab::SoftActorPrefab::nodeDisplacements |
Optional initial nodal displacements in model space, flattened as [x0, y0, z0, x1, y1, z1, ...].
Values are expressed in the model frame of shapeFile, the same frame as its node positions. The model transform baked into the shape (scale, shapeRotation, and the effective prefab scale) is applied to the displacements too. shapeTranslation does not affect them. Displacements for a preset SoftActorParams::shape are applied unchanged, like its geometry. Applied right after the actor is created, see Actor::SetDisplacements.
Definition at line 125 of file mochi_prefab.h.
| DynamicString superdex::prefab::SoftActorPrefab::renderModelFile |
Optional path to a render model file (e.g.
.glb) for visualization.
Definition at line 121 of file mochi_prefab.h.
| Quaternion superdex::prefab::SoftActorPrefab::renderModelRotation |
Rotation quaternion [x, y, z, w] to apply to the render model.
Definition at line 123 of file mochi_prefab.h.
| Real3 superdex::prefab::SoftActorPrefab::renderModelScale = {1_r, 1_r, 1_r} |
Scale [x, y, z] to apply to the render model.
Definition at line 122 of file mochi_prefab.h.
| Real3 superdex::prefab::SoftActorPrefab::renderModelTranslation = {} |
Translation [x, y, z] to apply to the render model.
Definition at line 124 of file mochi_prefab.h.
| Quaternion superdex::prefab::SoftActorPrefab::rotation {} |
Actor rotation quaternion [x, y, z, w] relative to the prefab's local frame (i.e., the prefab-from-local rotation).
Composes with PrefabParams::rotation to produce the final world-from-local rotation.
Definition at line 119 of file mochi_prefab.h.
| Real3 superdex::prefab::SoftActorPrefab::scale {1_r, 1_r, 1_r} |
Scale [x, y, z] to bake into the shape file.
Definition at line 116 of file mochi_prefab.h.
| GridSdfParams superdex::prefab::SoftActorPrefab::sdf |
[Experimental] Parameters used to construct a grid-based Signed Distance Field (SDF) from the shape's surface mesh.
Definition at line 112 of file mochi_prefab.h.
| DynamicString superdex::prefab::SoftActorPrefab::shapeFile {} |
Path to a model file that will be loaded and referenced via ShapeHandle.
Definition at line 110 of file mochi_prefab.h.
| Quaternion superdex::prefab::SoftActorPrefab::shapeRotation {} |
Rotation quaternion [x, y, z, w] to bake into the shape file.
Definition at line 117 of file mochi_prefab.h.
| Real3 superdex::prefab::SoftActorPrefab::shapeTranslation {} |
Translation [x, y, z] to bake into the shape file.
Definition at line 118 of file mochi_prefab.h.
| Real3 superdex::prefab::SoftActorPrefab::translation {} |
Actor translation [x, y, z] relative to the prefab's local frame (i.e., the prefab-from-local translation).
Composes with PrefabParams::scale, PrefabParams::rotation, and PrefabParams::translation to produce the final world-from-local translation.
Definition at line 120 of file mochi_prefab.h.
| bool superdex::prefab::SoftActorPrefab::useRecentering = true |
[Experimental] Enable automatic recentering of the local coordinate system.
Definition at line 115 of file mochi_prefab.h.