|
JSim 2026.06.01-p(1)
|
Rigid body with optional deformable mesh dynamics overlay. More...
#include <deformable_body.hpp>
Public Member Functions | |
| DeformableBody (double mass_kg=1.0) | |
| Constructs a rigid-body-based deformable body. | |
| const RigidBody & | rigidBase () const |
| Immutable access to underlying rigid body state and properties. | |
| RigidBody & | rigidBase () |
| Mutable access to underlying rigid body. | |
| void | enableDeformation (bool enable) |
| Enables or disables deformation solving. | |
| bool | isDeformationEnabled () const |
| Returns whether deformation is currently enabled. | |
| void | setBendStiffness (double stiffness_npm) |
| Sets the bending stiffness for deformation resistance. | |
| double | bendStiffness () const |
| Returns bending stiffness in newtons per meter. | |
| void | setWarpDamping (double damping_nspm) |
| Sets the warp damping coefficient for deformation energy dissipation. | |
| double | warpDamping () const |
| Returns warp damping in newton-seconds per meter. | |
| const std::vector< Vector3 > & | deformationNodes () const |
| Immutable access to local-frame deformation node positions. | |
| std::vector< Vector3 > & | deformationNodes () |
| Mutable access to local-frame deformation node positions. | |
| const std::vector< Vector3 > & | deformationVelocities () const |
| Immutable access to deformation node velocities. | |
| std::vector< Vector3 > & | deformationVelocities () |
| Mutable access to deformation node velocities. | |
Rigid body with optional deformable mesh dynamics overlay.
Extends rigid body behavior with per-node deformation tracking in local coordinates.
This is intentionally overkill for current use cases, but it keeps the future flex-body integration path explicit. TODO: Implement deformation solving during simulation substeps.
|
inlineexplicit |
Constructs a rigid-body-based deformable body.
| mass_kg | Body mass in kilograms. |
|
inline |
Returns bending stiffness in newtons per meter.
|
inline |
Mutable access to local-frame deformation node positions.
|
inline |
Immutable access to local-frame deformation node positions.
|
inline |
Mutable access to deformation node velocities.
|
inline |
Immutable access to deformation node velocities.
|
inline |
Enables or disables deformation solving.
| enable | Whether deformation dynamics are active. |
|
inline |
Returns whether deformation is currently enabled.
|
inline |
Mutable access to underlying rigid body.
|
inline |
Immutable access to underlying rigid body state and properties.
|
inline |
Sets the bending stiffness for deformation resistance.
| stiffness_npm | Stiffness in newtons per meter. |
|
inline |
Sets the warp damping coefficient for deformation energy dissipation.
| damping_nspm | Damping in newton-seconds per meter. |
|
inline |
Returns warp damping in newton-seconds per meter.