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

◆ recenter()

void MayaFlux::Nexus::Emitter::recenter ( )

Read the attached buffer's geometry again and move the anchor to match.

The object keeps its position. Blocks for a ComputeMeshBuffer, so call it off the graphics thread.

Definition at line 38 of file Emitter.cpp.

39{
40 if (m_attachment) {
42 }
43}
std::optional< glm::vec3 > m_position
Definition Emitter.hpp:271
std::optional< Attachment > m_attachment
Definition Emitter.hpp:284
void recenter_attachment(Attachment &attachment, std::optional< glm::vec3 > &position, const std::optional< glm::quat > &orientation)
Read the buffer's geometry again and move the anchor to match.

References m_attachment, m_position, and MayaFlux::Nexus::recenter_attachment().

+ Here is the call graph for this function: