X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=src%2Fcore%2Fcontroller.rs;h=23af1b28d494d8f0296a9eabd4e71e0eb5b5f45b;hb=93fc5734baf7537eae88e3b1a418ceb868862f2b;hp=9d23257f5a0a567e3f9651c719ed7aaeb588579b;hpb=6566d7e5467888e41b18dbaaa52d6a8636ce8e21;p=kaka%2Frust-sdl-test.git diff --git a/src/core/controller.rs b/src/core/controller.rs index 9d23257..23af1b2 100644 --- a/src/core/controller.rs +++ b/src/core/controller.rs @@ -95,7 +95,7 @@ impl Stick { pub fn to_point(&self) -> Point2D { let p = point!(self.x as f64, self.y as f64); if p.length() > 1.0 { - p.normalize() + p.normalized() } else { p }