Class: Battle::Visual3D::CameraPositionner

Inherits:
Object
  • Object
show all
Defined in:
docs/5_Battle_02_Visual.rb

Instance Method Summary collapse

Constructor Details

#initialize(camera) ⇒ CameraPositionner

Create a new CameraPositionner use for the camera movement

Parameters:

  • scene (Scene)

    scene that hold the logic object



1294
1295
# File 'docs/5_Battle_02_Visual.rb', line 1294

def initialize(camera)
end

Instance Method Details

#translation(t)

Parameters:

  • t (Float)

    value of the translation, apply the same for x and y



1306
1307
# File 'docs/5_Battle_02_Visual.rb', line 1306

def translation(t)
end

#x(t)

Parameters:

  • t (Float)

    value of x



1297
1298
# File 'docs/5_Battle_02_Visual.rb', line 1297

def x(t)
end

#y(t)

Parameters:

  • t (Float)

    value of y



1300
1301
# File 'docs/5_Battle_02_Visual.rb', line 1300

def y(t)
end

#z(t)

Parameters:

  • t (Float)

    value of z (0 is illegal)



1303
1304
# File 'docs/5_Battle_02_Visual.rb', line 1303

def z(t)
end