aboutsummaryrefslogtreecommitdiff
path: root/src/geometry
diff options
context:
space:
mode:
Diffstat (limited to 'src/geometry')
-rw-r--r--src/geometry/collider.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/geometry/collider.rs b/src/geometry/collider.rs
index a9af8d1..efe6304 100644
--- a/src/geometry/collider.rs
+++ b/src/geometry/collider.rs
@@ -161,9 +161,9 @@ impl Collider {
}
/// Sets the rotational part of this collider's position.
- pub fn set_rotation(&mut self, rotation: AngVector<Real>) {
+ pub fn set_rotation(&mut self, rotation: Rotation<Real>) {
self.changes.insert(ColliderChanges::POSITION);
- self.pos.0.rotation = Rotation::new(rotation);
+ self.pos.0.rotation = rotation;
}
/// Sets the position of this collider.