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
force/contact handling #516
force/contact handling #516
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good stuff. Nice amount of javadocs too but I feel that they could be a bit more explanatory at times :)
engine/src/main/java/org/destinationsol/events/ContactEvent.java
Outdated
Show resolved
Hide resolved
engine/src/main/java/org/destinationsol/events/ContactEvent.java
Outdated
Show resolved
Hide resolved
engine/src/main/java/org/destinationsol/events/ContactEvent.java
Outdated
Show resolved
Hide resolved
engine/src/main/java/org/destinationsol/events/ImpulseEvent.java
Outdated
Show resolved
Hide resolved
engine/src/main/java/org/destinationsol/events/ImpulseEvent.java
Outdated
Show resolved
Hide resolved
engine/src/main/java/org/destinationsol/events/ImpulseEvent.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Jindřich Dítě <adrijaned@gmail.com>
I did most of the changes that were suggested, but I haven't looked into the usage of `causesAcceleration` or why impulse is currently a float, so I didn't make those changes yet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good overall, just some clarification on how the things will be used
This handles the contact between two entities and the application of force to any entity. When two objects collide, a
ContactEvent
is created which, depending on how it is handled, can then create aForceEvent
.