summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHume2 <teratux.mail@gmail.com>2018-09-08 19:54:44 +0200
committerHume2 <teratux.mail@gmail.com>2018-09-08 19:54:44 +0200
commitbbfe7f301b329016021d3d5c6de580a30d48fc37 (patch)
tree4657a050cb72ac6c5b289e4e452a82ae3ea4d283
parentb99baf332cad6cda417b78e3c8af8e4c7d7b7785 (diff)
Use self.collisionbox for getting the node bellow
-rw-r--r--init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index 9b62911..8224030 100644
--- a/init.lua
+++ b/init.lua
@@ -403,7 +403,7 @@ function bike.on_step(self, dtime)
end
-- Can we ride good here?
- if not is_bike_friendly({x=p.x, y=p.y-0.355, z=p.z}) then
+ if not is_bike_friendly({x=p.x, y=p.y + self.collisionbox[2] - 0.05, z=p.z}) then
self.v = self.v / 1.05
end