View Issue Details
ID | Project | Category | Date Submitted | Last Update | |
---|---|---|---|---|---|
0005411 | Valley 1 | Bug - Monster Behavior | Jan 13, 2012 7:58 pm | Jan 14, 2012 7:16 pm | |
Reporter | Chris_McElligottPark | Assigned To | keith.lamothe | ||
Status | resolved | Resolution | fixed | ||
Product Version | 0.560 | ||||
Fixed in Version | 0.561 | ||||
Summary | 0005411: Clockwork probe shots don't properly work on sine wave at upward-shooting angles. | ||||
Description | Instead of going perpendicular to the shot direction, the sine part of the wave winds up going parallel. This isn't a huge deal at the moment, but it's something definitely noticeable at 45 degree angles or so. | ||||
Tags | No tags attached. | ||||
Internal Weight | Fix Before Major Release | ||||
|
My knowledge of trig and the interactions of the related code is such that fixing this will probably be a few hours of trial and error (which is how I got to the current implementation), but ok :) |
|
And naturally my making a comment like that causes the actual investigation to only take 5 minutes (remembering that the slope of a perpendicular line is -run/rise, not run/rise). I'll have to try that trick more often, maybe more bugs will get fixed faster ;) |
|
I think that this is a two-step process: 1. Assume that the wave is moving on a straight line, and calculate the amount of Y movement (offset from centerline) that would be given at the current point in the sine wave. 2. Translate that Y movement into the X and Y movement based on the angle. This should just be Sin and Cos once again as with any magnitude/angle calculation, right? I'm terrible at trig myself, so maybe there's some reason that doesn't work, but that's what springs to mind for me. |
|
Oh, haha. I see you already fixed it and I missed that. Nevermind on my comment. :) |
Date Modified | Username | Field | Change |
---|---|---|---|
Jan 13, 2012 7:58 pm | Chris_McElligottPark | New Issue | |
Jan 13, 2012 7:58 pm | Chris_McElligottPark | Status | new => assigned |
Jan 13, 2012 7:58 pm | Chris_McElligottPark | Assigned To | => keith.lamothe |
Jan 13, 2012 7:58 pm | Chris_McElligottPark | Product Version | => 0.560 |
Jan 14, 2012 9:11 am | keith.lamothe | Note Added: 0018015 | |
Jan 14, 2012 9:20 am | keith.lamothe | Note Added: 0018016 | |
Jan 14, 2012 9:20 am | keith.lamothe | Status | assigned => resolved |
Jan 14, 2012 9:20 am | keith.lamothe | Fixed in Version | => 0.561 |
Jan 14, 2012 9:20 am | keith.lamothe | Resolution | open => fixed |
Jan 14, 2012 7:15 pm | Chris_McElligottPark | Note Added: 0018017 | |
Jan 14, 2012 7:16 pm | Chris_McElligottPark | Note Added: 0018018 |