Commit Graph

10 Commits

Author SHA1 Message Date
Chris Forbes
4d893cb1f2 Merge pull request #4129 from ScottNZ/refactor
Refactor
2013-11-12 00:06:01 -08:00
ScottNZ
00ec1ca87a Remove unused usings 2013-11-12 19:39:33 +13:00
ScottNZ
c373bc22e8 Rewrite our Equals implementations so they don't crash when comparing incompatible objects 2013-11-12 17:12:56 +13:00
Paul Chote
6d52af4553 Add probabilistic sampling functions to WRange, WVec. 2013-08-01 20:18:41 +12:00
Paul Chote
c3f04cc32e Convert non-aircraft positioning to world coords.
This removes the incomplete and unused hover code
on Mobile, which would be more trouble that it is
currently worth to carry over.
2013-07-21 17:35:47 +12:00
Paul Chote
f18994f800 Add WVec.HorizontalLengthSquared to simplify range checks. 2013-07-21 17:30:58 +12:00
Paul Chote
56da57bc09 Return WVec.LengthSquared as a long to avoid overflow. 2013-07-21 17:30:57 +12:00
Paul Chote
5976913c73 Add WPos/WVec.LerpQuadratic to simplify ballistic calculations. 2013-07-08 23:40:22 +12:00
Paul Chote
be250bca76 Rewrite ThrowsParticle using world coordinates.
The old dynamics were crazy, so this implements
a simpler model using a cubic lerp.
2013-04-01 12:59:49 +13:00
Paul Chote
724ea88c3b Add new "World Coordinate" types.
These types provide fixed-point representations of distances, angles,
positions, vectors, and rotations in 3d space.

WAngle (and WRot) represents 360 degrees in 1024 units.
WRange (and WPos, WVec) represents 1 cell in 1024 units.

Distance types in yaml can be written as <cell>c<subcell>, e.g. "4c512" for 4.5 cells.
2013-03-29 20:39:27 +13:00