Script:quake: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{ScriptCommandPage |description=shake the camera to simulate an earthquake |parameters= intensity number* Initial quake intensity duration number* Quake duration in milliseconds frequency number* Number of oscillations per 100ms |intro=The camera position, yaw, pitch and roll will be raw will be randomly offset with and oscillating magnitude whose peaks start with the given intensity but linearly decline to 0 until the end of the quake. If a quake is already active, the...") |
mNo edit summary |
||
Line 4: | Line 4: | ||
intensity number* Initial quake intensity | intensity number* Initial quake intensity | ||
duration number* Quake duration in milliseconds | duration number* Quake duration in milliseconds | ||
frequency number* Number of oscillations per | frequency number* Number of oscillations per 200 * π ms | ||
|intro=The camera position, yaw, pitch and roll will be raw will be randomly offset with and oscillating magnitude whose peaks start with the given intensity but linearly decline to 0 until the end of the quake. If a quake is already active, the intensity and duration will be added to the existing quake and the period will be the average of the old and new periods. This is a global effect and does not depend on the used camera. | |intro=The camera position, yaw, pitch and roll will be raw will be randomly offset with and oscillating magnitude whose peaks start with the given intensity but linearly decline to 0 until the end of the quake. If a quake is already active, the intensity and duration will be added to the existing quake and the period will be the average of the old and new periods. This is a global effect and does not depend on the used camera. | ||
}} | }} |
Latest revision as of 12:52, 24 June 2023
The quake
script command is used to shake the camera to simulate an earthquake. The camera position, yaw, pitch and roll will be raw will be randomly offset with and oscillating magnitude whose peaks start with the given intensity but linearly decline to 0 until the end of the quake. If a quake is already active, the intensity and duration will be added to the existing quake and the period will be the average of the old and new periods. This is a global effect and does not depend on the used camera.
Usage
quake <intensity*> <duration*> <frequency*>
Context: Ignored
Parameters:
Parameter | Type | Description |
---|---|---|
intensity |
number or variable |
Initial quake intensity |
duration |
number or variable |
Quake duration in milliseconds |
frequency |
number or variable |
Number of oscillations per 200 * π ms |