mirror of
https://github.com/APercy/automobiles_pck
synced 2025-08-21 20:35:48 +02:00
fixed the friction calc
This commit is contained in:
parent
c7e74ddaf7
commit
24fd569596
@ -7,9 +7,9 @@ function automobiles_lib.physics(self)
|
||||
-- dumb friction
|
||||
if self.isonground and not self.isinliquid then
|
||||
--minetest.chat_send_all('okay')
|
||||
self.object:add_velocity({x=vel.x - vel.x*friction,
|
||||
y=0,
|
||||
z=vel.z - vel.z*friction})
|
||||
self.object:add_velocity({x=vel.x*friction-vel.x,
|
||||
y=vel.y,
|
||||
z=vel.z*friction-vel.z})
|
||||
end
|
||||
|
||||
-- bounciness
|
||||
|
Loading…
Reference in New Issue
Block a user