Skip to content

force/contact handling - #516

Merged
NicholasBatesNZ merged 11 commits into
MovingBlocks:developfrom
IsaacLic:forceHandling
Jun 16, 2020
Merged

NicholasBatesNZ merged 11 commits into
MovingBlocks:developfrom
IsaacLic:forceHandling

Conversation

@IsaacLic

@IsaacLic IsaacLic commented Jun 5, 2020

Copy link
Copy Markdown
Contributor

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 a ForceEvent.

@IsaacLic
IsaacLic marked this pull request as draft June 5, 2020 22:55

@NicholasBatesNZ NicholasBatesNZ left a comment

Copy link
Copy Markdown
Member

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 :)

Comment thread engine/src/main/java/org/destinationsol/events/ContactEvent.java Outdated
Comment thread engine/src/main/java/org/destinationsol/events/ContactEvent.java Outdated
Comment thread engine/src/main/java/org/destinationsol/events/ForceEvent.java Outdated
Comment thread engine/src/main/java/org/destinationsol/events/ForceEvent.java Outdated
Comment thread engine/src/main/java/org/destinationsol/events/ForceEvent.java Outdated
Comment thread engine/src/main/java/org/destinationsol/events/ForceEvent.java Outdated
Comment thread engine/src/main/java/org/destinationsol/events/ForceEvent.java Outdated
Comment thread engine/src/main/java/org/destinationsol/events/ContactEvent.java Outdated
Comment thread engine/src/main/java/org/destinationsol/events/ImpulseEvent.java Outdated
Comment thread engine/src/main/java/org/destinationsol/events/ImpulseEvent.java Outdated
Comment thread engine/src/main/java/org/destinationsol/events/ImpulseEvent.java Outdated
IsaacLic and others added 2 commits June 7, 2020 22:15
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.

@syntaxi syntaxi left a comment

Copy link
Copy Markdown

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

Comment thread engine/src/main/java/org/destinationsol/events/ContactEvent.java Outdated
Comment thread engine/src/main/java/org/destinationsol/events/ContactEvent.java Outdated
Comment thread engine/src/main/java/org/destinationsol/events/ForceEvent.java
@IsaacLic
IsaacLic marked this pull request as ready for review June 14, 2020 21:46
@NicholasBatesNZ
NicholasBatesNZ merged commit f354317 into MovingBlocks:develop Jun 16, 2020
@IsaacLic
IsaacLic deleted the forceHandling branch June 18, 2020 03:41
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.

4 participants