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

Saften TargetSprite #458

Merged
merged 3 commits into from
May 9, 2020
Merged

Saften TargetSprite #458

merged 3 commits into from
May 9, 2020

Conversation

serin-delaunay
Copy link
Contributor

  • Crash on negative exponential_speed to prevent imaginary values.
  • Document effects of parameter value ranges.
  • Prevent zero division when max speed is negative and sprite is at target.

Tests still only cover the standard usage, not error conditions or negative speeds.

* Crash on negative exponential_speed to prevent imaginary values.
* Document effects of parameter value ranges.
* Prevent zero division when max speed is negative and sprite is at target.
serin-delaunay and others added 2 commits May 7, 2020 16:43
Co-authored-by: Piper Thunstrom <pathunstrom@gmail.com>
@pathunstrom
Copy link
Collaborator

Just want to ping this. I'm happy with what you've done here, just need it to be not a draft to get it in to the code base.

@serin-delaunay serin-delaunay marked this pull request as ready for review May 9, 2020 16:44
@serin-delaunay serin-delaunay requested a review from a team as a code owner May 9, 2020 16:44
Copy link
Collaborator

@pathunstrom pathunstrom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good. We'll probably come back to this API in the future, but it's functional and that's what we care about for this pass.

bors r+

bors bot added a commit that referenced this pull request May 9, 2020
458: Saften TargetSprite r=pathunstrom a=serin-delaunay

* Crash on negative exponential_speed to prevent imaginary values.
* Document effects of parameter value ranges.
* Prevent zero division when max speed is negative and sprite is at target.

Tests still only cover the standard usage, not error conditions or negative speeds.

Co-authored-by: Serin Delaunay <serin.delaunay@gmail.com>
@bors
Copy link
Contributor

bors bot commented May 9, 2020

Build failed:

@pathunstrom
Copy link
Collaborator

bors retry

@bors bors bot merged commit c66f521 into ppb:master May 9, 2020
@serin-delaunay serin-delaunay deleted the patch-1 branch October 6, 2020 04:48
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.

2 participants