Re: Collision detection in 2d games when turning is a thing?

I would personally use target_x-player_x, since if you do  the reverse you'll get the negative values of what they should be. Also you could rotate both the object and the point about 0 0 by the angle of the tested object, so that the tested object lies with a 0 angle to the x axis, so that if the point is within the target object, you can determine with a simple bounds check.

_______________________________________________
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
  • ... AudioGames . net Forum — Developers room : Aprone via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : Dranelement via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : Aprone via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : Dranelement via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : Aprone via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : Dranelement via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : stewie via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : stewie via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : stewie via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : stewie via Audiogames-reflector

Reply via email to