Introduces the axis parameter, which can be set to any of "x", "y", true, or false, and defaults to true. "x" indicates that the axis is locked so that only horizontal movement is applied, "y" indicates the same for horizontal movement. false means that no movement is applied in any direction (ie, the element is completely frozen), while true retains the default behavior. getAxis() and setAxis() methods have also been added to retrieve and adjust the locked axis in flight, respectively.
Introduces the
axis
parameter, which can be set to any of"x"
,"y"
,true
, orfalse
, and defaults totrue
."x"
indicates that the axis is locked so that only horizontal movement is applied,"y"
indicates the same for horizontal movement.false
means that no movement is applied in any direction (ie, the element is completely frozen), whiletrue
retains the default behavior.getAxis()
andsetAxis()
methods have also been added to retrieve and adjust the locked axis in flight, respectively.