mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-15 23:52:35 +00:00
Fixed cursor not showing up in Asset Viewer main menu, fixed Camera free move not having :turn_left/right implemented
This commit is contained in:
@@ -116,6 +116,8 @@ class IMICFPS
|
||||
relative_speed = 10.0 if InputMapper.down?(:sprint)
|
||||
relative_speed *= window.dt
|
||||
|
||||
turn_speed = 50.0 * window.dt
|
||||
|
||||
if InputMapper.down?( :forward)
|
||||
@position.z+=Math.cos(relative_y_rotation * Math::PI / 180) * relative_speed
|
||||
@position.x-=Math.sin(relative_y_rotation * Math::PI / 180) * relative_speed
|
||||
@@ -136,6 +138,14 @@ class IMICFPS
|
||||
@position.x-=Math.cos(relative_y_rotation * Math::PI / 180) * relative_speed
|
||||
end
|
||||
|
||||
if InputMapper.down?(:turn_left)
|
||||
@orientation.y -= turn_speed
|
||||
end
|
||||
|
||||
if InputMapper.down?(:turn_right)
|
||||
@orientation.y += turn_speed
|
||||
end
|
||||
|
||||
if InputMapper.down?(:ascend)
|
||||
@position.y+=relative_speed
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user