mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-19 09:31:07 +01:00
make bucket use 5 lenght raycast
This commit is contained in:
parent
49bde37a5e
commit
b364faa7c7
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ local function bucket_raycast(user)
|
||||||
--local pos = vector.add(user:get_pos(), user:get_bone_position("Head_Control"))
|
--local pos = vector.add(user:get_pos(), user:get_bone_position("Head_Control"))
|
||||||
pos.y = pos.y + user:get_properties().eye_height
|
pos.y = pos.y + user:get_properties().eye_height
|
||||||
local look_dir = user:get_look_dir()
|
local look_dir = user:get_look_dir()
|
||||||
look_dir = vector.multiply(look_dir, 4)
|
look_dir = vector.multiply(look_dir, 5)
|
||||||
local pos2 = vector.add(pos, look_dir)
|
local pos2 = vector.add(pos, look_dir)
|
||||||
|
|
||||||
local ray = raycast(pos, pos2, false, true)
|
local ray = raycast(pos, pos2, false, true)
|
||||||
|
|
Loading…
Reference in a new issue