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

Support for instantiated sketches? #2

Closed
mexitalian opened this issue May 13, 2016 · 4 comments
Closed

Support for instantiated sketches? #2

mexitalian opened this issue May 13, 2016 · 4 comments

Comments

@mexitalian
Copy link

Is there a way to use this library from an instantiated sketch, currently I can call the the collide2d methods using the namespace created, i.e. p.collideCirclePoly() but when subsequent methods are called an error is thrown as these are not found in the global scope.

Chrome: index.js:258 Uncaught ReferenceError: collideLineCircle is not defined

Could be I'm missing something simple.
Many thanks.

@chiunhau
Copy link

I got p5.collide2d.js:149 Uncaught ReferenceError: _collideDebug is not defined in instance mode 😞

@EseOkonofua
Copy link

I have the same issue anyway to fix this?

@conradoqg
Copy link
Contributor

I've created a PR for that.
#4 - makes collide2d work with instantiated sketches.

@bmoren
Copy link
Owner

bmoren commented Mar 26, 2017

@conradoqg 's changes have been merged into the master branch, thank you!

@bmoren bmoren closed this as completed Mar 26, 2017
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

5 participants