mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-28 13:53:45 +01:00
make raycast start from player head
This commit is contained in:
parent
873a1e73dc
commit
dc17cc91a3
@ -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 New Issue
Block a user