Skip to content

raisim::CollisionBodyFluidSlot ​

class · #include <raisim/collision/CollisionBody.hpp>

Internal: the CollisionBodyFluid of a collision body, copied with it, in one pointer that stays empty for bodies no fluid has reached. An assignment keeps the storage the slot has, so references to its coefficients stay valid when a checkpoint is restored.

Constructors & destructor ​

CollisionBodyFluidSlot ​

cpp
CollisionBodyFluidSlot() = default
cpp
CollisionBodyFluidSlot(const CollisionBodyFluidSlot &other)
cpp
CollisionBodyFluidSlot(CollisionBodyFluidSlot &&) noexcept = default

Public member functions ​

operator= ​

cpp
CollisionBodyFluidSlot &operator=(const CollisionBodyFluidSlot &other)
cpp
CollisionBodyFluidSlot &operator=(CollisionBodyFluidSlot &&) noexcept = default

coefficients ​

cpp
const FluidCoefficients &coefficients() const

Returns how fluids act on the body

data ​

cpp
CollisionBodyFluid &data()

Returns the fluid data, created with the default coefficients if there was none

RaiSim — physics for robotics and AI.