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

expose wakeUp() in api #56

Closed
andreivips opened this issue Dec 7, 2020 · 2 comments
Closed

expose wakeUp() in api #56

andreivips opened this issue Dec 7, 2020 · 2 comments

Comments

@andreivips
Copy link

Hi, and thanks for great libs !
Bodies falls asleep ( when <Physics allowSleep={true}> ), but after, wont move with applyImpulse/Force without wakeUp.

@marcofugaro
Copy link
Member

Hey! Thanks!
Yeah it makes sense to wake up a sleeping body if a force/impulse is applied directly to it.

In the meantime, you have to call body.wakeUp().

@andreivips
Copy link
Author

... had to open it in useCannon

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

No branches or pull requests

2 participants