XNA 2D vector angles - what's the correct way to calculate?

后端 未结 2 1158
栀梦
栀梦 2021-02-02 00:58

what is in XNA in 2D the standard way vector angles work ?

0 degrees points right, 90 points up, 180 left, 270 down ?

What are the \'standard\' implementations o

2条回答
  •  忘了有多久
    2021-02-02 01:34

    There is no convention for which direction a certain angle represents in XNA, so you can just define it however you like.

    I'm not sure when the last time I used angles in a game was. In almost every case it's easier to work directly with vectors, if a little less intuitive to begin with.

提交回复
热议问题