mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-16 08:01:07 +01:00
make raycast start from player head
This commit is contained in:
parent
873a1e73dc
commit
dc17cc91a3
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ local pointable_sources = {}
|
|||
|
||||
local function bucket_raycast(user)
|
||||
--local pos = user:get_pos()
|
||||
local pos = mcl_util.get_object_center(user)
|
||||
local pos = user:get_pos()
|
||||
--local pos = vector.add(user:get_pos(), user:get_bone_position("Head_Control"))
|
||||
pos.y = pos.y + user:get_properties().eye_height
|
||||
local look_dir = user:get_look_dir()
|
||||
|
|
Loading…
Reference in a new issue