MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ set_direction()

void MayaFlux::Buffers::BuoyancyProcessor::set_direction ( const glm::vec3 &  direction)

Set the force axis and magnitude.

Parameters
directionWorld-space vector. Not normalized.

Definition at line 105 of file BuoyancyProcessor.cpp.

106{
107 m_direction = direction;
108 if (get_volume()) {
109 write_tail();
110 }
111}
void write_tail()
Write every parameter past the shared prefix.
const std::shared_ptr< VolumeGridBuffer > & get_volume() const
The attached volume, or null if attachment failed validation.

References MayaFlux::Buffers::VolumeFieldProcessor::get_volume(), m_direction, and write_tail().

+ Here is the call graph for this function: