class Prism::CameraControls::ThirdPerson

Overview

This provides third person view and controls to the camera. The Camera will be positioned view it's attached Entity from the third person.

Included Modules

Defined in:

prism/stdlib/camera_controls/third_person_camera_controls.cr

Constant Summary

MAX_PITCH = 89.999_f32
MAX_ZOOM = 100_f32
MIN_PITCH = 0_f32
MIN_ZOOM = 1_f32

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!

Instance methods inherited from class Prism::CameraControls::Controller

camera_transform : Prism::Transform camera_transform

Constructor Detail

def self.new(offset : Vector3f) #

Create a controller with an pre-defined offset. This offset will be added to all camera transformations.


[View source]
def self.new #

[View source]

Instance Method Detail

def input!(tick : RenderLoop::Tick, input : RenderLoop::Input, entity : Crash::Entity) #
Description copied from module Prism::InputReceiver

Receives input events from the InputSubscriber


[View source]