class Prism::FreeLook

Overview

Causes the parent Entity's position to be controlled by the mouse.

Included Modules

Defined in:

prism/stdlib/free_look.cr

Constant Summary

Y_AXIS = Vector3f.new(0, 1, 0)

Constructors

Instance Method Summary

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

def self.new(sensitivity : Float32, unlock_mouse_key : Window::Key) #

[View source]
def self.new(sensitivity : Float32) #

[View source]
def self.new #

[View source]

Instance Method Detail

def input!(tick : RenderLoop::Tick, input : RenderLoop::Input, entity : Crash::Entity) #

Performs a rotation on the transform


[View source]
def mouse_locked : Bool #

[View source]