View Issue Details

IDProjectCategoryLast Update
0005411Valley 1Bug - Monster BehaviorJan 14, 2012 7:16 pm
ReporterChris_McElligottPark Assigned Tokeith.lamothe  
Status resolvedResolutionfixed 
Product Version0.560 
Fixed in Version0.561 
Summary0005411: Clockwork probe shots don't properly work on sine wave at upward-shooting angles.
DescriptionInstead 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.
TagsNo tags attached.
Internal WeightFix Before Major Release

Activities

keith.lamothe

Jan 14, 2012 9:11 am

administrator   ~0018015

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

keith.lamothe

Jan 14, 2012 9:20 am

administrator   ~0018016

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

Chris_McElligottPark

Jan 14, 2012 7:15 pm

administrator   ~0018017

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.

Chris_McElligottPark

Jan 14, 2012 7:16 pm

administrator   ~0018018

Oh, haha. I see you already fixed it and I missed that. Nevermind on my comment. :)

Issue History

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