Skip to content

feat: allow impetus to be locked a single axis#35

Open
azaslavsky wants to merge 7 commits intochrisbateman:masterfrom
azaslavsky:disable-axis
Open

feat: allow impetus to be locked a single axis#35
azaslavsky wants to merge 7 commits intochrisbateman:masterfrom
azaslavsky:disable-axis

Conversation

@azaslavsky
Copy link
Copy Markdown

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant