class Prism::CameraControls::ThirdPerson
- Prism::CameraControls::ThirdPerson
- Prism::CameraControls::Controller
- Crash::Component
- Reference
- Object
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.crConstant Summary
-
MAX_PITCH =
89.999_f32
-
MAX_ZOOM =
100_f32
-
MIN_PITCH =
0_f32
-
MIN_ZOOM =
1_f32
Constructors
-
.new(offset : Vector3f)
Create a controller with an pre-defined offset.
- .new
Instance Method Summary
-
#input!(tick : RenderLoop::Tick, input : RenderLoop::Input, entity : Crash::Entity)
Receives input events from the
InputSubscriber
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
Create a controller with an pre-defined offset. This offset will be added to all camera transformations.
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