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() = defaultcpp
CollisionBodyFluidSlot(const CollisionBodyFluidSlot &other)cpp
CollisionBodyFluidSlot(CollisionBodyFluidSlot &&) noexcept = defaultPublic member functions
operator=
cpp
CollisionBodyFluidSlot &operator=(const CollisionBodyFluidSlot &other)cpp
CollisionBodyFluidSlot &operator=(CollisionBodyFluidSlot &&) noexcept = defaultcoefficients
cpp
const FluidCoefficients &coefficients() constReturns how fluids act on the body
data
cpp
CollisionBodyFluid &data()Returns the fluid data, created with the default coefficients if there was none