Fixes
This commit is contained in:
@@ -27,10 +27,9 @@ function test_object:set_relative_position_to_camera( ent )
|
||||
local rightX, rightY, rightZ = camera.get_right()
|
||||
local upX, upY, upZ = camera.get_up()
|
||||
|
||||
local yaw = camera.get_yaw()
|
||||
local pitch = camera.get_pitch()
|
||||
|
||||
self:set_rotation(pitch, -yaw, 0.0)
|
||||
self:set_rotation_from_vectors(frontX, frontY, frontZ,
|
||||
rightX, rightY, rightZ,
|
||||
upX, upY, upZ)
|
||||
|
||||
local offsetx = 0.0
|
||||
local offsety = 0.0
|
||||
|
||||
Reference in New Issue
Block a user