mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-16 08:02:36 +00:00
Fixed nameplate oddly cutting off terrain, got a grid for terrain, first/third person toggle.
This commit is contained in:
@@ -46,6 +46,14 @@ class IMICFPS
|
||||
end
|
||||
|
||||
def position_camera
|
||||
if defined?(@game_object.first_person_view)
|
||||
if @game_object.first_person_view
|
||||
@distance = 0
|
||||
else
|
||||
@distance = 5
|
||||
end
|
||||
end
|
||||
|
||||
x_offset = horizontal_distance_from_object * Math.sin(@game_object.y_rotation.degrees_to_radians)
|
||||
z_offset = horizontal_distance_from_object * Math.cos(@game_object.y_rotation.degrees_to_radians)
|
||||
# p @game_object.x, @game_object.z;exit
|
||||
|
||||
Reference in New Issue
Block a user