mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-19 01:21:05 +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 function bucket_raycast(user)
|
||||||
--local pos = user:get_pos()
|
--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"))
|
--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()
|
||||||
|
|
Loading…
Reference in a new issue