lib/traits/moveable.rb in gosu_extensions-0.1.6 vs lib/traits/moveable.rb in gosu_extensions-0.1.7

- old
+ new

@@ -37,9 +37,13 @@ InitializerHooks.register self do self.rotation = to_execute[] end end + def random_rotation + rotation { 2*Math::PI*rand } + end + end # Directly set the position of our Moveable using a vector. # def warp vector \ No newline at end of file