Skip to main content
Quonux's user avatar
Quonux's user avatar
Quonux's user avatar
Quonux
  • Member for 11 years, 8 months
  • Last seen more than a month ago
  • Germany
comment
How do I target a tank turret with an offset barrel?
You added your own solution ... looks good to me at first glance.
comment
How do I target a tank turret with an offset barrel?
Yes the vertical barrel angle can be solved separately ... . So one needs to solve the quadratic equation for the rotation on the horizontal plane, the rotation for the vertical plane can be solved with only pythagorean theorem without need for a solution of a quadratic equation.
comment
How do I target a tank turret with an offset barrel?
@CustomCalc No,the quadratic equation is necessary for a EXACT solution on the horizontal plane.The question was about a exact solution,not a usual game hack which gives a wrong result, for example when the vertical barrel is directly on the "left/right rotation point of turret" or treated as such.The quadratic equation is for the rotation on the horizontal plane, and thus necessary!
revised
Loading…
awarded
Loading…
awarded
awarded
comment
Why aren't there game and physics engines with double precision?
Projection can be done with compute shaders (or the equivalent) with OpenGL 4.3 (or below with some hacks).
awarded
awarded
comment
Merging custom c++ engine with Unreal Engine
It is not allowed to merge engines with unreal engine 4!
awarded
suggested
Reject
awarded
comment
Procedural river or road generation for infinite terrain
I actually never implemented this algorithm but the hash function can be indeed an trivial one.
comment
Procedural river or road generation for infinite terrain
You will propably run into precision issues with single precision if the lib uses single precision or if you use single precsion. To bypass the problem if the lib just uses single precision and you don't do as follows: Before converting the positions to single precision subtract the global position of the center cell from them, then put this as floats into the lib, then transform the results back.
1
2 3 4 5
10