Added ai generated animation

This commit is contained in:
Vladislav Khorev committed 2026-04-01 19:07:21 +03:00
1 parent 7840bfdb4e
commit a96d0b207a
5 files changed
+464792 -10

No files matched your search

+24
View File
@@ -63,8 +63,14 @@ namespace ZL {
BoneSystem violaWalkModel;
VertexRenderStruct violaWalkModelMutable;
BoneSystem zombieModel;
VertexRenderStruct zombieModelMutable;
std::shared_ptr<Texture> violaTexture;
float zombieCurrentIdleFrame = 0;
int zombieLastIdleFrame = 0;
float violaCurrentIdleFrame = 0;
float violaCurrentWalkFrame = 0;
@@ -72,7 +78,25 @@ namespace ZL {
int violaLastWalkFrame = 0;
int violaCurrentAnimation = 0;
float cameraAzimuth = 0.0f;
float cameraInclination = M_PI * 30.f / 180.f;
Eigen::Vector3f violaPosition = Eigen::Vector3f(0.f, 0.f, 0.f);
Eigen::Vector3f violaTarget = Eigen::Vector3f(0.f, 0.f, 0.f);
float violaFacingAngle = 0.0f;
private:
bool rightMouseDown = false;
int lastMouseX = 0;
int lastMouseY = 0;
static constexpr float CAMERA_FOV_Y = 1.0f / 1.5f;
static constexpr float VIOLA_WALK_SPEED = 3.0f;
static constexpr float VIOLA_WALK_THRESHOLD = 0.05f;
static constexpr float VIOLA_ROTATION_SPEED = 8.0f; // radians per second
float violaTargetFacingAngle = 0.0f;
int64_t getSyncTimeMs();
void processTickCount();
void drawScene();