New answers tagged

1 vote

Does Raycast called from Update execute on next FixedUpdate?

The raycast is executed as soon as you call the function. In fact, you are normally going to want to use the result of the raycast inside of the same update, and that just wouldn't be possible if the ...
  • 326
1 vote
Accepted

Determine which cannons on a ship can hit a target

Real warships (before the modern age of relying primarily on guided-missile weaponry) typically have multiple guns that can cover one side of the ship. Each gun will have its own firing arc. If you ...
  • 3,763
0 votes

Determine which cannons on a ship can hit a target

Updated Answer Initial calculations Calculate these once at the beginning as if your ship is static and at origin, and later transform enemy positions with respect to your ship. Write the equation ...

Top 50 recent answers are included