more camera movement

This commit is contained in:
Asuro
2025-02-12 02:01:39 +01:00
parent 03aecb6d44
commit 137d8fa539
6 changed files with 56 additions and 6 deletions

View File

@@ -20,6 +20,8 @@ struct Vec2
{
float X = 0.0f;
float Y = 0.0f;
void Normalize();
};
struct Vec3
@@ -32,6 +34,8 @@ struct Vec3
{
return {X, Y, Z};
};
void Normalize();
};
struct Quat
@@ -67,7 +71,8 @@ struct Mat4
};
static void CreateTransform(float* out, Vec3 pos, Quat rot = {}, Vec3 scale = {1.0f, 1.0f, 1.0f});
void Translate(Vec3 offset);
void TranslateLocal(Vec3 offset);
void Rotate(Vec3 rotation);
Vec3 Right();
Vec3 Up();
Vec3 Forward();