Module: Battle::Visual3D::Transition3D::CameraHandling

Defined in:
docs/5_Battle_02_Visual.rb

Overview

Module providing 3D camera handling for 2D transitions imported into 3D Overrides sprite setup, transition animations and ball throw sequences to use camera movements and shader effects instead of 2D sprite displacement

Constant Summary collapse

CAMERA_ANIMATION_DURATION =

Duration for camera and shader animations (prefixed to avoid conflict with 2D ANIMATION_DURATION)

0.5
CAMERA_PLAYER_SEND_POSITION =

Dezoom position for the player send animation [x, y, z, rotate_x]

[-35, 20, 0.90, 5]
CAMERA_RESET_POSITION =

Position the camera resets to after transition animations [x, y, z, rotate_x]

[0, 0, 1, 0]
SHADER_COLOR =

Shader color applied when sprites appear (RGBA normalized)

[0, 0, 0, 1]
CAMERA_BATTLE_END_POSITION =

Camera position for the battle end animation [x, y, z]

[48, 0, 1]