Skip to reading
GDScript Programming & Godot

CameraOrbit()

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView PDF page

Camera Orbit

Start an orbit around an entity with distance, height, direction, speed and repetitions.

Source table from CameraOrbit(), page 140
Option key / fieldMeaning and inputDefault
Target Object entityIdChoose a scene entity ID.Blank
Degrees Per Second speedOrbit angular speed.45
Distance distanceNumber; decimals allowed.5
Orbit Mode modeChoose: 360, 180, 180_back."360"
Repeat Count repetitionsWhole number.1
Clockwise clockwiseOn/off.false
Height heightNumber; decimals allowed.2

Timing. Waits for the runtime routine to return; no further completion wait is promised by this schema.

Code example
await CameraOrbit({"entityId": "archive_door", "speed": 45, "distance": 5})

In use. Orbit the clock for a reveal, then stop it before returning to normal play. The orbit continues as a behavior after it starts; do not assume that placing it before another action makes the list wait for every revolution.

Page 140 of 378Permalink
Go to page