# HG changeset patch # User Wuzzy # Date 1519471657 0 # Node ID fb89844d7b7822021574553e4a4cb27a87e33f9d # Parent 770aa6d54ae2eaf555922b14c51910f1ccd2b391 LuaAPI: Move GetGearCollisionMask diff -r 770aa6d54ae2 -r fb89844d7b78 LuaAPI.wiki --- 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 @@ === !GetGearPosition(gearUid) === 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. + === !GetGearRadius(gearUid) === 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. - === !SetGearVelocity(gearUid, dx, dy) === Gives the specified gear the velocity of `dx`, `dy`.