feat: added npc poi for custom npcs
This commit is contained in:
@@ -9,7 +9,7 @@ function V2f V2f_Scale(V2f x, F32 scale) {
|
||||
}
|
||||
|
||||
V2f NormaliseV2F(V2f x) {
|
||||
F32 magnitude = sqrtf((x.x * x.x) + (x.y +x.y));
|
||||
F32 magnitude = sqrtf((x.x * x.x) + (x.y * x.y));
|
||||
if(magnitude > 0.0){
|
||||
F32 inverse = 1.0f/magnitude;
|
||||
return V2F(x.x*inverse, x.y*inverse);
|
||||
|
||||
Reference in New Issue
Block a user