Class: Teien::Camera
- Inherits:
-
Object
- Object
- Teien::Camera
- Defined in:
- lib/teien/ui/camera.rb
Instance Method Summary collapse
- #get_direction ⇒ Object
- #get_mover ⇒ Object
- #get_position ⇒ Object
-
#initialize(cam) ⇒ Camera
constructor
A new instance of Camera.
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_direction ⇒ Object
20 21 22 |
# File 'lib/teien/ui/camera.rb', line 20 def get_direction return Vector3D.to_self(@camera.get_direction()) end |
#get_mover ⇒ Object
12 13 14 |
# File 'lib/teien/ui/camera.rb', line 12 def get_mover() return @mover end |
#get_position ⇒ Object
16 17 18 |
# File 'lib/teien/ui/camera.rb', line 16 def get_position return Vector3D.to_self(@camera.get_position()) end |