Skip to reading
GDScript Programming & Godot

StopCameraOrbit()

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

Stop Camera Orbit

Stop the current extension-driven orbit.

No options in the standard catalog schema.

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

Code example
await StopCameraOrbit({})

In use. Use it when an inspection closes or a conversation ends. Decide which normal camera should take over and activate that camera explicitly when needed.

CameraShake()#

Camera Shake

Shake the 3D camera for the chosen duration and direction, waiting for the shake routine.

Source table from StopCameraOrbit(), page 141
Option key / fieldMeaning and inputDefault
Direction directionChoose: both, horizontal, vertical."both"
Duration (seconds) durationTime in seconds for this action. Read its timing note before assuming it waits. Range: 0.01 to 60.0.0.5
Power powerNumber; decimals allowed. Range: 0.0 to 10.0.0.25

Timing. Waits for the shake routine.

Code example
await CameraShake({"direction": "both", "duration": 1, "power": 0.25})

In use. Use a small power, such as 0.1 to 0.25, for a machinery rumble. Its scale differs from the pixel-oriented Shake Screen action. Keep shakes short and provide a reduced-motion option for players who need it.

Page 141 of 378Permalink
Go to page