# HG changeset patch # User Wuzzy # Date 1441846160 0 # Node ID 64c94ad363c8bae703754c05bae6c70aace6d340 # Parent 50ad270cfcfb637eb376e0bf2cb7f03665f4c2fc Prettify GetVisualGearValues documentation diff -r 50ad270cfcfb -r 64c94ad363c8 LuaAPI.wiki --- a/LuaAPI.wiki Thu Sep 10 00:44:39 2015 +0000 +++ b/LuaAPI.wiki Thu Sep 10 00:49:20 2015 +0000 @@ -547,8 +547,18 @@ === !GetVisualGearValues(vgUid) === This returns the typically set visual gear values, useful if manipulating things like smoke or bubbles or circles. It returns the following values: -X, Y, dX, dY, Angle, Frame, !FrameTicks, State, Timer, Tint -X, Y typically position, dX, dY typically speed, Angle is usually the rotation angle, Frame is typically the animation frame, !FrameTicks is usually an animation counter. State can have a variety of values, but is typically bit packed, Timer is usually the gear lifetime and Tint is the colour. + +`X, Y, dX, dY, Angle, Frame, FrameTicks, State, Timer, Tint` + +* `X`, `Y`: typically position +* `dX`, `dY`: typically speed +* `Angle` is usually the rotation angle +* `Frame` is typically the animation frame +* `FrameTicks` is usually an animation counter +* `State` can have a variety of values, but is typically bit packed +* `Timer` is usually the gear lifetime +* `Tint` is the RGBA color + Most visual gears require little to no modification of parameters. Example: