|
SuperDex Physics C++ API
|
Parameters to create a rigid body actor. More...
#include <mochi_structs.h>
Public Member Functions | |
| bool | operator== (RigidActorParams const &) const =default |
Public Attributes | |
| std::optional< Real3 > | angularVelocity |
| Optional initial angular velocity in world frame [rad/s], zero otherwise. | |
| ActorBoundaryElementType | boundaryElementType = ActorBoundaryElementType::Default |
| Finite element type for boundary discretization. | |
| std::optional< BoundarySubsamplingParams > | boundarySubsampling |
| Optional subsampling for boundary integrals such as contact. | |
| std::optional< Real3 > | centerOfMass |
| Position [m] of the center of mass in the actor's local frame. | |
| ColliderType | colliderType = ColliderType::Auto |
| Collision detection geometry. | |
| ContactParams | contact |
| Contact mechanics parameters. | |
| std::optional< real > | density |
| Uniform density [kg/m³] of the actor. | |
| bool | hasGravity = true |
| If true, actor is affected by gravity. | |
| bool | isStatic = false |
| If true, actor will be static (fixed in space). | |
| DynamicString | layer |
| Contact layer name for filtering contacts between actors. | |
| std::optional< Real3 > | linearVelocity |
| Optional initial linear velocity of the center of mass in world frame [m/s], zero otherwise. | |
| std::optional< real > | mass |
| Total mass [kg] of the actor. | |
| std::optional< Real6 > | momentOfInertia |
| Moment of inertia tensor [kg·m²] at the center of mass in the actor's local frame. | |
| DynamicString | name |
| Optional actor name. | |
| GridSdfParams | sdf |
| Parameters used to construct a grid-based Signed Distance Field (SDF) if the shape doesn't already have one. | |
| ShapeHandle | shape |
| Shape handle defining the actor's geometry and other metadata. | |
| TransformRT | worldFromLocal |
| Initial rotation and translation of the actor's local frame with respect to world frame. | |
Parameters to create a rigid body actor.
Rigid actors behave as rigid bodies with 6 degrees of freedom (3 translational, 3 rotational). They can be static (fixed in space) or dynamic (affected by forces and collisions).
Definition at line 118 of file mochi_structs.h.
|
default |
| std::optional<Real3> superdex::RigidActorParams::angularVelocity |
Optional initial angular velocity in world frame [rad/s], zero otherwise.
Definition at line 151 of file mochi_structs.h.
| ActorBoundaryElementType superdex::RigidActorParams::boundaryElementType = ActorBoundaryElementType::Default |
Finite element type for boundary discretization.
Definition at line 145 of file mochi_structs.h.
| std::optional<BoundarySubsamplingParams> superdex::RigidActorParams::boundarySubsampling |
Optional subsampling for boundary integrals such as contact.
Definition at line 147 of file mochi_structs.h.
| std::optional<Real3> superdex::RigidActorParams::centerOfMass |
Position [m] of the center of mass in the actor's local frame.
Definition at line 141 of file mochi_structs.h.
| ColliderType superdex::RigidActorParams::colliderType = ColliderType::Auto |
Collision detection geometry.
Definition at line 127 of file mochi_structs.h.
| ContactParams superdex::RigidActorParams::contact |
| std::optional<real> superdex::RigidActorParams::density |
Uniform density [kg/m³] of the actor.
Must be positive if provided.
Definition at line 137 of file mochi_structs.h.
| bool superdex::RigidActorParams::hasGravity = true |
If true, actor is affected by gravity.
Definition at line 135 of file mochi_structs.h.
| bool superdex::RigidActorParams::isStatic = false |
If true, actor will be static (fixed in space).
If false, actor will be dynamic.
Definition at line 129 of file mochi_structs.h.
| DynamicString superdex::RigidActorParams::layer |
Contact layer name for filtering contacts between actors.
Definition at line 121 of file mochi_structs.h.
| std::optional<Real3> superdex::RigidActorParams::linearVelocity |
Optional initial linear velocity of the center of mass in world frame [m/s], zero otherwise.
Definition at line 149 of file mochi_structs.h.
| std::optional<real> superdex::RigidActorParams::mass |
Total mass [kg] of the actor.
Must be positive if provided.
Definition at line 139 of file mochi_structs.h.
| std::optional<Real6> superdex::RigidActorParams::momentOfInertia |
Moment of inertia tensor [kg·m²] at the center of mass in the actor's local frame.
Stored as [ixx, ixy, ixz, iyy, iyz, izz] using negative tensor notation:
Definition at line 143 of file mochi_structs.h.
| DynamicString superdex::RigidActorParams::name |
Optional actor name.
Uniqueness of names is not enforced.
Definition at line 119 of file mochi_structs.h.
| GridSdfParams superdex::RigidActorParams::sdf |
Parameters used to construct a grid-based Signed Distance Field (SDF) if the shape doesn't already have one.
Definition at line 133 of file mochi_structs.h.
| ShapeHandle superdex::RigidActorParams::shape |
Shape handle defining the actor's geometry and other metadata.
Definition at line 123 of file mochi_structs.h.
| TransformRT superdex::RigidActorParams::worldFromLocal |
Initial rotation and translation of the actor's local frame with respect to world frame.
Definition at line 125 of file mochi_structs.h.