feat: added npc poi for custom npcs

This commit is contained in:
2025-10-05 18:28:58 +01:00
parent e20e537e97
commit b8f47b8f61
5 changed files with 11 additions and 5 deletions

View File

@@ -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);