class Prism::FreeLook
- Prism::FreeLook
- Crash::Component
- Reference
- Object
Overview
Causes the parent Entity
's position to be controlled by the mouse.
Included Modules
Defined in:
prism/stdlib/free_look.crConstant Summary
-
Y_AXIS =
Vector3f.new(0, 1, 0)
Constructors
Instance Method Summary
-
#input!(tick : RenderLoop::Tick, input : RenderLoop::Input, entity : Crash::Entity)
Performs a rotation on the transform
- #mouse_locked : Bool
Instance methods inherited from module Prism::Adapter::GLFW
run(title : String, game : Prism::Engine, frame_rate : Float64, width : Int32, height : Int32)run(title : String, game : Prism::Engine, frame_rate : Float64 = 60) run
Instance methods inherited from module Prism::InputReceiver
input!(tick : RenderLoop::Tick, input : RenderLoop::Input, entity : Crash::Entity)
input!
Constructor Detail
Instance Method Detail
def input!(tick : RenderLoop::Tick, input : RenderLoop::Input, entity : Crash::Entity)
#
Performs a rotation on the transform