summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorJustin Worthe <justin@worthe-it.co.za>2018-05-01 11:35:17 +0200
committerJustin Worthe <justin@worthe-it.co.za>2018-05-01 11:35:17 +0200
commit7a8fe60eb17d66771b153280b76546bcf46a9c7e (patch)
tree1db9435341da9765e088b99f89f6bb38bb1c6fef /src/main.rs
parent934efcccaa5a82f993c13c91511afe1943caa3b4 (diff)
Vector times scalar and unit vectors
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index 98dd39f..857e744 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -66,8 +66,7 @@ impl App<AssetId> for BugBasherGame {
let angle = angle_dist.ind_sample(&mut self.rng);
self.bugs.push(Bug::new(
angle.cos()*1000.,
- angle.sin()*1000.,
- angle + PI
+ angle.sin()*1000.
));
}