1
0
Fork 0

make bucket use 5 lenght raycast

This commit is contained in:
AFCMS 2021-07-17 16:22:46 +02:00
parent 49bde37a5e
commit b364faa7c7
1 changed files with 1 additions and 1 deletions

View File

@ -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)