Re: moving players in angles like in FPS type games

@Kianoosh: nope.
You can imagine it like moving in a ball. You are in center of a ball and want to move so you touch its side. First you need to specify the angle of point on surface of the ball toward which you want to move. Because there are three dimensions, you need two angles to do so. First, which represents your horizontal facing i.e. distance in degrees from zeroth meridian and second representing distance in degrees from the equator of ball.
Gps by the way works in similar fashion.
The distance from your location to that point is equal to radius of that ball. Every point from the ball's surface has the same distance from center, so if you want to move in 3d space for some distance, you know, that you'll end somewhere on surface of a ball with radius equal to distance of your movement.

Vertical angles are thus 0 for horizontal, 45 half up, 90 up, 135 half up behind, 180 behind, 225 half down behind, 270 down, 315 half down and 360 is equal to zero.
You can of course use every possible angle, even -785 if you like, this are just most noticeable values.

If one moves under angles 0;45 degrees, 1 meter, he will end on 0;(sqrt(2)/2)^2;sqrt(2)/2.
That is approximately 0;0.56;0.75.

These numbers are hard to imagine, that's why I personally use the mind model of a ball.

Best regards

Rastislav

-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
  • ... AudioGames . net Forum — Developers room : cw via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : kianoosh via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : redfox via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : cw via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : kianoosh via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : Rastislav Kiss via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : cw via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : cw via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : kianoosh via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : Rastislav Kiss via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : kianoosh via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : Rastislav Kiss via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : CAE_Jones via Audiogames-reflector

Reply via email to