Finished camera controller.
This commit is contained in:
1 parent
2bd6012297
commit
807f78fcda
9 files changed
+92
-53
No files matched your search
@@ -59,6 +59,8 @@ void CharacterController2D::onStart() {
|
||||
}
|
||||
}
|
||||
|
||||
if(mathAbs<float_t>(moveAmount.x) <= 0.001f && mathAbs<float_t>(moveAmount.y) <= 0.001f) return;
|
||||
|
||||
transform->setLocalPosition(
|
||||
transform->getLocalPosition() + (glm::vec3(moveAmount.x, 0, moveAmount.y) * delta)
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user