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

◆ recenter()

void MayaFlux::Nexus::Agent::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 37 of file Agent.cpp.

38{
39 if (m_attachment) {
41 }
42}
std::optional< glm::quat > m_orientation
Definition Agent.hpp:381
std::optional< glm::vec3 > m_position
Definition Agent.hpp:380
std::optional< Attachment > m_attachment
Definition Agent.hpp:396
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_orientation, m_position, and MayaFlux::Nexus::recenter_attachment().

+ Here is the call graph for this function: