(6.0.0 Shader) wobble - JujuAdams/ScribbleOldDocs GitHub Wiki

vec2 wobble(vec2 position, vec2 centre, float angle, float frequency)

Returns: The position after the application of a wobble effect

Datatype Name Purpose
vec2 position Position to transform
vec2 centre Centre of rotation, analogous to the "origin" in GameMaker's sprites
float angle Maximum rotation of the wobble effect
float frequency The period of the wobble effect. Higher values cause characters to wobble more