OptionalcylinderLength of each axis cylinder.
OptionalcylinderRadius of the axis cylinders.
OptionalsphereRadius of the endpoint spheres (N, S, E, W, Up, Down).
OptionalpositionPosition of the compass in 3D space [x, y, z].
OptionalbearingMap bearing (rotation) in degrees.
Used when overlay is false or syncWithCamera is false.
OptionalpitchMap pitch (tilt) in degrees.
Used when overlay is false or syncWithCamera is false.
OptionalscaleScale multiplier for the entire compass. Use this to size the compass appropriately for your scene.
OptionaloverlayRender the compass as a screen-space overlay (recommended). When false, it stays in world space.
OptionalalignmentScreen alignment for the overlayed compass.
OptionalmarginMargin in pixels from the aligned screen edges when overlayed.
OptionalsyncWhen true, the overlay uses the active camera orientation automatically.
Set to false to drive orientation manually via bearing and pitch.
Props for the Compass3D component.
Example: Basic usage (overlayed, auto-synced to camera)
Example: Custom size and position in world space (overlay disabled)