class

PointClickEngine::Graphics::Effects::CameraEffects::FollowEffect

Inherits PointClickEngine::Graphics::Effects::CameraEffects::BaseCameraEffect < PointClickEngine::Graphics::Effects::Effect < Reference < Object

Smooth follow effect for tracking targets

Constructors

new(target : RL::Vector2 | Nil = nil, duration : Float32 = 0.0_f32)
Source

Instance methods

apply_to_camera(camera : Graphics::Core::Camera, dt : Float32)

Apply effect to camera

Source
deadzone_height
Source
deadzone_height=(deadzone_height : Float32)
Source
deadzone_width

Follow parameters

Source
deadzone_width=(deadzone_width : Float32)

Follow parameters

Source
follow_speed
Source
follow_speed=(follow_speed : Float32)
Source
look_ahead
Source
look_ahead=(look_ahead : Float32)
Source
offset
Source
offset=(offset : RL::Vector2)
Source
target

Target to follow

Source
target=(target : RL::Vector2 | Nil)

Target to follow

Source
target_position
Source
target_position=(target_position : RL::Vector2 | Nil)
Source