DecayKnowledgebase
functiongenerated

Camera.orbit

Creates or retargets an explicit camera's engine-owned world-space orbit. Angles are radians; zero yaw is +Z behind the target, positive pitch is above it. Preserves offset, smoothing and collision settings. Target must be an active authored spatial entity, independent of the camera hierarchy.

Signature

Camera.orbit(camera: Entity, target: Entity, yaw: number, pitch: number, distance: number) -> unit

Member of Camera

Related types

Entity

Source
docs/generated/decay-api.json
Schema
v1
Engine version
0.1.0
Source commit
909aca81368b