1,145 reputation
211
bio website hexgridutilities.codeplex.com
location Canada
age 58
visits member for 1 year, 8 months
seen 2 hours ago

A physicist, accountant (CGA,CPA), and software developer by training, and a professional developer by employment, I wrote my first computer program in FORTRAN w/ WATFOR in high school. Since then I have written device drivers for a PDP-15, CAD/CAM applications in C, and Database applications in everything from FORTRAN (?!) and C to SQL and MS-Office.

I currently build financial and business applications professionally, mostly with VBA / C# / SQL, while developing my own Napoleonics game engine in C# on weekends and evenings.


Oct
21
comment Are there any hex tile sizes where both width and height are integers?
Show off! ;-) +1 for refreshing my memoey
Oct
19
comment How to check the Intersection the line and triangle in 3D
The 2D solution is sufficient, as either the line and triangle are coplanar and it applies; or they are not coplanar and the line is parallel to it so no solution; or they are not coplanar and the line intersects the plane of the triangle in a single point which is quickly checked for being on one of the triangle's legs.
Oct
18
comment 3D Translations relative to 3D Rotations
This is an XY problem - a request for instruction on an inappropriate solution. If there was insight to be obtained by performing the calculations directly from the trigonometry this might be forgiven, but the opposite is true - the solution will be so cumbersome, and so difficult to make performant, that all insight will be buried under the code.
Oct
16
comment List of 3 letter words to disallow from entry for public kids game
If you go with only two letters you probably still want to ban FU and perhaps BO, perhaps a few others I can't recall to mind.
Oct
14
comment Clickable hex grid in c#.net
That's Amit's new web address. Same guy. new location.
Oct
14
comment How to calculate left/right oriented angle between two 2D vectors?
@SmartK8: Multiply the sign of the cross-product z-projection with the sign of the dot-product, which indicates the trend (towards A or towards B), and use that.
Oct
14
comment How to calculate left/right oriented angle between two 2D vectors?
Look Ma! No ATan2 calls.
Oct
14
revised How to calculate left/right oriented angle between two 2D vectors?
added 251 characters in body
Oct
14
comment How to calculate left/right oriented angle between two 2D vectors?
Isn't the product: sign(AB . CD) * sign(AB x CD) sufficient to determine the desired turn?
Oct
14
revised How to calculate left/right oriented angle between two 2D vectors?
added 4 characters in body
Oct
14
revised How to calculate left/right oriented angle between two 2D vectors?
deleted 149 characters in body
Oct
14
answered How to calculate left/right oriented angle between two 2D vectors?
Oct
12
comment Swarm Algorithms
Lookup Flock algorithms and Flocking Behaviour, which is the more common algorithmic term. There are some good Q&A on this site for them.
Oct
12
comment Why should I use a list of enemies instead of an array of enemies?
Check out Arrays Considered Somewhat Harmful by Eric Lippert: blogs.msdn.com/b/ericlippert/archive/2008/09/22/…
Oct
10
comment Calculating aim point to pass through other point
@freesoul: No, your equations will not apply here because they are only for the case where both the magnitude and direction of acceleration is constant, whereas your description of the problem is that only the magnitude of the acceleration is constant, with its direction being directed towards a fixed aim pont.
Oct
10
comment Calculating aim point to pass through other point
@freesoul: Exactly! for circular motion the acceleration is constantly directed towards a fixed point, the center of the circular orbit. The angle of the acceleration will rotate with the rocket's motion, maintaining a fixed angle relative to the orientation of the rocket but rotating relative to a fixed (actually any inertial) observer.
Oct
9
answered Calculating aim point to pass through other point
Sep
7
comment Why are gaming graphics not as beautiful as animated movies?
Perhaps because the game developers have no interest in spending $50,000,000 + on effects - something movie producers do routinely these days.
Mar
22
answered Calculating the point(s) at which two moving objects are a certain distance from each other
Mar
14
comment How can I calculate force and acceleration?
Whatever your coordinate origin, provided your coordinate axes are perpendicular to each other (the norm) you can compute and store the X-, Y-, and Z-coordinates of all vectors independently. All three properties (displacement, velocity and acceleration) are vector quantities.