08.12.2013, 23:24
Hi,
I've been looking for ways to detect at which coordinates the water hits the ground when you spray with the firetruck's watercannon at any angle.
I've got some basic formula working, but it's not quite right.
When testing this, my code creates a small checkpoint to indicate the calculated coordinates.
Only at some specific angles and on flat terrain, the coordinates are correct.
But spraying horizontally or more vertically, or on elevated terrain, the coordinates aren't accurate anymore.
Like in single player, you could extinguish cars using a firetruck easily.
I want to be able to do the same thing.
Is there a standard way to detect this?
Some specific formula?
I've been looking for ways to detect at which coordinates the water hits the ground when you spray with the firetruck's watercannon at any angle.
I've got some basic formula working, but it's not quite right.
When testing this, my code creates a small checkpoint to indicate the calculated coordinates.
Only at some specific angles and on flat terrain, the coordinates are correct.
But spraying horizontally or more vertically, or on elevated terrain, the coordinates aren't accurate anymore.
Like in single player, you could extinguish cars using a firetruck easily.
I want to be able to do the same thing.
Is there a standard way to detect this?
Some specific formula?