-
Notifications
You must be signed in to change notification settings - Fork 2
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
What is Engine.Body? #53
Comments
Each engine typically has its own body type (p2.Body is the type for p2.js), so it's just an abstraction over a reference to a body/object that can be provided back to the Engine API. |
Is there a natural place that could be documented in a comment? Perhaps in a typedef? |
Commented in the top of PhysicsEngine.js. A typedef doesn't really... make sense for any code. Presumably this would be doable/enforceable with TypeScript? Thoughts? |
That seems good for now. Not sure whether TypesScript would use generics or an interface, etc. Closing. |
For #5, I saw references to
Engine.Body
but I wasn't sure where the implementation is. Can you clarify?The text was updated successfully, but these errors were encountered: