-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This fixes 2 basic things: 1. there was a bug in how the length of the ray was scaled for high-FPS that could cause the grenade to explode closer to the launcher than it should be. 2. the ray test was modified to extend the ray by sqrt(2)*grenadeRadius. This allows the ray test to pass for grenades that are "kissing" an object right at the end of a frame. For higher frame rates this occurs more often so this fix makes it so that all frame rates behave the same and don't have this "kissing" issue.
- Loading branch information
Showing
1 changed file
with
17 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters