Minor fix
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 18s

This commit is contained in:
Stephen Seo 2023-08-11 15:48:16 +09:00
parent fcd6deb435
commit d2d0f8373c

View file

@ -135,7 +135,9 @@ void Walker::draw(const Model &model) {
} }
void Walker::set_body_pos(Vector3 pos) { void Walker::set_body_pos(Vector3 pos) {
if (!Vector3Equals(target_body_pos, pos)) { if (!Vector3Equals(Vector3{target_body_pos.x, target_body_pos.y - body_height,
target_body_pos.z},
pos)) {
target_body_pos = pos; target_body_pos = pos;
target_body_pos.y += body_height; target_body_pos.y += body_height;