mirror of
https://github.com/APercy/airutils.git
synced 2025-03-15 16:11:22 +00:00
fix camewra
This commit is contained in:
parent
eb052e3df5
commit
079e52a88c
1 changed files with 2 additions and 2 deletions
|
@ -532,8 +532,8 @@ function airutils.camera_reposition(player, pitch, roll)
|
|||
local player_properties = player:get_properties()
|
||||
local new_eye_offset = vector.new()
|
||||
local z, y = airutils.get_xz_from_hipotenuse(0, player_properties.eye_height, pitch, player_properties.eye_height)
|
||||
new_eye_offset.z = z
|
||||
new_eye_offset.y = y
|
||||
new_eye_offset.z = z*7
|
||||
new_eye_offset.y = y*1.5
|
||||
local x, _ = airutils.get_xz_from_hipotenuse(0, player_properties.eye_height, roll, player_properties.eye_height)
|
||||
new_eye_offset.x = x*7
|
||||
return new_eye_offset
|
||||
|
|
Loading…
Add table
Reference in a new issue