From 4aeff0886aa61ed3834ef4826aa1a1f3e99508b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20Gia=20Phong?= Date: Sat, 2 Oct 2021 17:32:23 +0700 Subject: Clean up unused functions and style --- src/Skeleton.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Skeleton.cpp') diff --git a/src/Skeleton.cpp b/src/Skeleton.cpp index ba27aa4..6aa3508 100644 --- a/src/Skeleton.cpp +++ b/src/Skeleton.cpp @@ -1,6 +1,6 @@ /**> HEADER FILES <**/ +#include "Camera.h" #include "Skeleton.h" -#include "Serialize.h" #include "misc.h" extern float multiplier; @@ -133,7 +133,7 @@ void Skeleton::DoConstraints(Model *collide, XYZ *move, float rotation) joints[i].velocity.z *= 0.3; } - offset = 0.2; + offset = true; if (whichtri != -1 && collide->normals[whichtri].y <= 0.8) { normalrotated = DoRotation(collide->normals[whichtri], 0, rotation, 0); -- cgit v1.2.3