Class: Teien::Camera

Inherits:
Object
  • Object
show all
Defined in:
lib/teien/ui/camera.rb

Instance Method Summary collapse

Constructor Details

#initialize(cam) ⇒ Camera



6
7
8
9
10
# File 'lib/teien/ui/camera.rb', line 6

def initialize(cam)
  # Ogre::Camera
  @camera = cam
  @mover = CameraMover.new(cam)
end

Instance Method Details

#get_directionObject



20
21
22
# File 'lib/teien/ui/camera.rb', line 20

def get_direction
  return Vector3D.to_self(@camera.get_direction())
end

#get_moverObject



12
13
14
# File 'lib/teien/ui/camera.rb', line 12

def get_mover()
  return @mover
end

#get_positionObject



16
17
18
# File 'lib/teien/ui/camera.rb', line 16

def get_position
  return Vector3D.to_self(@camera.get_position())
end