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

isMoving property and action notification #79

Open
DennisSmolek opened this issue Apr 25, 2024 · 0 comments
Open

isMoving property and action notification #79

DennisSmolek opened this issue Apr 25, 2024 · 0 comments
Labels
character enhancement New feature or request

Comments

@DennisSmolek
Copy link
Collaborator

Tracking movement state allows us to trigger sounds or animation (walk, run, etc)

I was going to add this when we set the linearVelocity in the character controller.

However, I'm not sure this is only for user-defined movement or if this will also factor in moving platforms or if impacted by another body.

There are body settings where a large body can push the controller (imagine a boulder)
In this instance, we would want the character to notify that it is moving.

However, if we are on a moving platform and the linear velocity is changing because the ground velocity is, then we shouldn't notify that we are moving (dont want to play walking animation when on a moving platform)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
character enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant