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

crowdUpdate doesn't actually emit the 'update' event #25

Open
jdestefx opened this issue Jul 1, 2018 · 1 comment
Open

crowdUpdate doesn't actually emit the 'update' event #25

jdestefx opened this issue Jul 1, 2018 · 1 comment
Assignees

Comments

@jdestefx
Copy link

jdestefx commented Jul 1, 2018

According to the docs, you're supposed to call recast.crowdUpdate(delta) to move the agents along their given velocity, etc, and an internal "update" event is emitted.

This does not happen.

It's only after you call recast.crowdGetActiveAgents() that an update event is emitted. The two functions are documented as being independent and serving different purposes and there is no inference that crowdGetActiveAgents has to be called before the 'update' event is emitted, yet that is the case.

Even the demo project does this.

@vincent
Copy link
Owner

vincent commented Jul 8, 2018

Yup, that's weird. I'll check this.

@vincent vincent self-assigned this Jul 8, 2018
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