Skip to content

Rotatable

Isuru Kusumal Rajapakse edited this page Jun 17, 2017 · 1 revision

new Rotatable()

  • Represents a component that defines a behaviors like rotate etc.
Returns
  • Void

Rotatable.torque(degree)

rotates the object by given amount of degrees

Parameters
Name Type Description
degree int - amount of degrees to move.  
Returns
  • Void

Rotatable.rotate(degree)

rotates the object by given amount of degrees

Parameters
Name Type Description
degree int - amount of degrees to move.  
Returns
  • Void

Clone this wiki locally