class Camera

Attributes

position[RW]
rotation[RW]
zoom[RW]

Public Class Methods

new() click to toggle source
# File examples/ruboids/ruboids/Camera.rb, line 14
def initialize
    @position = Point.new($PARAMS['camera_x'],
                          $PARAMS['camera_y'],
                          $PARAMS['camera_z'])
    @rotation = Point.new($PARAMS['camera_rot_x'],
                          $PARAMS['camera_rot_y'],
                          $PARAMS['camera_rot_z'])
    @zoom = $PARAMS['camera_zoom']
end