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

Physics? #16

Closed
tojaroslaw opened this issue May 14, 2018 · 2 comments · Fixed by #66
Closed

Physics? #16

tojaroslaw opened this issue May 14, 2018 · 2 comments · Fixed by #66
Assignees

Comments

@tojaroslaw
Copy link
Member

tojaroslaw commented May 14, 2018

We need physics in this game like so stuff can fall and shit

EDIT(lambdaviking): This entails adding velocity (momentum) to entities and gravity.

@viking-sudo-rm
Copy link
Member

Steps to achieve this:

  1. Implement second-order mechanics in Entity.
  2. Gravity should be applied to entities, and should be disablable using the isFlying() API.
  3. Don't fall through the floor. Set perpendicular component to 0 on collision.

@viking-sudo-rm
Copy link
Member

Make sure the implementation allows the direction of gravity to be reversed and stuff. This shouldn't be too hard, but something to keep in mind given some of the use cases we have in mind.

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 a pull request may close this issue.

2 participants