BillboardComponent
A component that orients an entity instance so that it continuously points toward the active camera.
Declaration
struct BillboardComponentMentioned in
Overview
The BillboardComponent automatically adjusts an entity’s orientation so that its z-axis keeps pointing in the direction of the main camera in a RealityKit scene.
Add a BillboardComponent to any entity by passing it to an entity’s set(_:) method.
entity.components.set(BillboardComponent())The entity immediately reorients itself so that it faces the scene’s active camera.
Without | With |
|---|---|
[Image] | [Image] |
For an example of how to animate blendFactor, see BillboardAction.