--- a/LuaAPI.wiki Sat Feb 24 11:24:06 2018 +0000
+++ b/LuaAPI.wiki Sat Feb 24 11:27:37 2018 +0000
@@ -470,6 +470,9 @@
=== <tt>!GetGearPosition(gearUid)</tt> ===
Returns x,y coordinates for the specified gear. Not to be confused with `GetGearPos`.
+=== `GetGearCollisionMask(gearUid)` ===
+Returns the current collision mask of the given gear. See `SetGearCollisionMask` for an explanation of the mask.
+
=== <tt>!GetGearRadius(gearUid)</tt> ===
Returns the `Radius` value for the specified gear. For most [GearTypes gear types] for “projectile” gears (like `gtShell` or `gtGrenade`), the radius refers to the gear's collision radius. This is an invisible circle around the center of the gear which is used for the collision checks. For a few gear types, its radius means something different, see [Gear Types] for a full list.
@@ -795,9 +798,6 @@
There are actual more flags availbable, but they are not as useful for use in Lua. You can find the full range of flags in the engine source code (in Pascal):
https://hg.hedgewars.org/hedgewars/file/default/hedgewars/uConsts.pas#l112
-=== `GetGearCollisionMask(gearUid)` ===
-Returns the current collision mask of the given gear. See `SetGearCollisionMask` for an explanation of the mask.
-
=== <tt>!SetGearVelocity(gearUid, dx, dy)</tt> ===
Gives the specified gear the velocity of `dx`, `dy`.