Class: Ogre::Camera

Inherits:
Object show all
Defined in:
lib/shattered_ogrerb/camera.rb

Instance Method Summary collapse

Instance Method Details

#look_at(v) ⇒ Object

Look at an object You can send it a node, mesh, or anything with a position vector Or just a vector



9
10
11
12
# File 'lib/shattered_ogrerb/camera.rb', line 9

def look_at(v)
	v = v.position if v.class.respond_to? :position
	raw_look_at v.to_v
end

#raw_look_atObject



4
# File 'lib/shattered_ogrerb/camera.rb', line 4

alias_method :raw_look_at, :look_at