Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

azaslavsky
Copy link

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