mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-08 13:34:38 +02:00
renamed tables for consistency
- added magic.lua (todo: enumerate modifiers and stuff) - moved aggro handling to session position update - some cleanup
This commit is contained in:
parent
6c74222b68
commit
f4016e1a12
25 changed files with 539 additions and 442 deletions
|
@ -78,8 +78,7 @@ namespace FFXIVClassic.Common
|
|||
|
||||
public static float GetAngle(float x, float z, float x2, float z2)
|
||||
{
|
||||
var angle = (float)(Math.Atan((z2 - z) / (x2 - x)) * - Math.PI);
|
||||
return x > x2 ? angle + (float)Math.PI : angle;
|
||||
return (float)(Math.Atan2((z2 - z), (x2 - x)));
|
||||
}
|
||||
|
||||
public Vector3 NewHorizontalVector(float angle, float extents)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue