Minor fix
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 18s
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 18s
This commit is contained in:
parent
fcd6deb435
commit
d2d0f8373c
1 changed files with 3 additions and 1 deletions
|
@ -135,7 +135,9 @@ void Walker::draw(const Model &model) {
|
|||
}
|
||||
|
||||
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.y += body_height;
|
||||
|
||||
|
|
Loading…
Reference in a new issue