Skip to content
This repository was archived by the owner on Mar 27, 2025. It is now read-only.

Conversation

@moggers87
Copy link
Owner

These lines previously had calls to "limit" (which was a clamp implementation) but they were of the form limit(v, lo, v); which is very confusing! Replacing limit with clamp caused errors so I decided to remove the calls and just use the lo value.

This worked™ except it also allowed planes to fly through towers without hitting them. Going back and re-reading the v0.2.6 source code made me realise that limit was being used like max, so we now call max.

Fixes #50

These lines previously had calls to "limit" (which was a clamp
implementation) but they were of the form `limit(v, lo, v);` which is
very confusing! Replacing `limit` with `clamp` caused errors so I
decided to remove the calls and just use the `lo` value.

This worked™ except it also allowed planes to fly through towers without
hitting them. Going back and re-reading the v0.2.6 source code made me
realise that `limit` was being used like `max`, so we now call `max`.
@moggers87 moggers87 force-pushed the 50-collide-with-buildings branch from e99ae7a to 765c7d7 Compare February 1, 2025 01:59
@moggers87 moggers87 merged commit acd51bc into runway Feb 1, 2025
3 checks passed
@moggers87 moggers87 deleted the 50-collide-with-buildings branch February 1, 2025 02:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Jet can skip through buildings

2 participants