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

add basic collision resolution #65

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

AlexBezuska
Copy link
Member

Add basic collision resolution (intirim solution) does not use the new "collisions": {} we talked about, this is for existing "collisions": [] components.
This will make the tutorial game much easier.

Introduces the concept of "body" by requiring a "body" component on any "collidable" entity that the developer wants to resolve collisions. This is similar to the Unity concept of "rigidBody" which is an entity that is "solid" in the game.

trackLastPosition and resolveCollisions added
lastPosition is added as it's own components like int he tutorial game, this can be updates once we have "collisions":{} working.

Tested with starter project and works well.

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

Successfully merging this pull request may close these issues.

1 participant