X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=src%2Fcore%2Fcontroller.rs;h=23af1b28d494d8f0296a9eabd4e71e0eb5b5f45b;hb=a6b57e450092f390103915bb8b936ceb9a116b03;hp=9d23257f5a0a567e3f9651c719ed7aaeb588579b;hpb=eca2559123ae3c7ef184bf42ec60680fcddb38f6;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 }