Skip to content

EntropyCanvas::IExternalTransformSource

Interface for external transform sources. More…

#include <ExternalTransformSource.h>

Name
virtual~IExternalTransformSource() =default
virtual voidsample(glm::vec3 & outPosition, glm::quat & outRotation) const =0
Sample the current transform from the external source.
class EntropyCanvas::IExternalTransformSource;

Interface for external transform sources.

Implement this for systems that own transforms externally:

  • Input-driven cameras (FPS controller)
  • XR tracking (headset, controllers, hands)
  • Motion capture systems
  • Network-predicted transforms

Thread safety: sample() must be safe to call from any thread.

virtual ~IExternalTransformSource() =default
virtual void sample(
glm::vec3 & outPosition,
glm::quat & outRotation
) const =0

Sample the current transform from the external source.

Parameters:

  • outPosition Output position
  • outRotation Output rotation

Called by:

  • Render thread (for low-latency camera updates)
  • Simulation thread (for syncing to ECS)

Updated on 2026-01-26 at 17:14:35 -0500