New answers tagged

0

There is probably a more mathematically elegant solution, but you could just offset where you are aiming based on the rotation of the gun. Say your barrel of your gun is 20px higher than your pivot point, you would calculate your angle to point the barrel based on 20px below your mouse curser to compensate. If you're aiming completely up, you would calculate ...


1

In real life, weapons have their sights (whether metallic, reddot, optical scope, etc.) slightly above the barrel axis. To compensate for this, the sights axis is usually set to point slightly down such that the sight axis and the barrel axis cross at a distance X, for example 100 m. It means that if you aim at a target 100 m away from you, the bullet will ...


Top 50 recent answers are included