From 9a2a2b9d69e401d1a990f25a1dacc6ef5afc95af Mon Sep 17 00:00:00 2001 From: SmallJoker Date: Fri, 27 Oct 2017 12:51:26 +0200 Subject: [PATCH] Correct feet position for rotated model --- cart_entity.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cart_entity.lua b/cart_entity.lua index a85b071..8343638 100644 --- a/cart_entity.lua +++ b/cart_entity.lua @@ -359,12 +359,12 @@ function cart_entity:on_step(dtime) -- TODO: Find a better way to calculate this if boost_cart.old_player_model then feet.y = 6 + 1.5 - feet.z = (dir.x - dir.z) * 7 + feet.z = -dir.y * 7 else feet.y = -4.2 + 3 - feet.z = dir.x - dir.z + feet.z = -dir.y end - eye.z = eye.z - dir.y * 10 + eye.z = -dir.y * 10 end player:set_attach(self.object, "", feet, {x=dir.y * -45, y=0, z=0})