Permalink
Browse files

Rotate after moving

  • Loading branch information...
iain committed Feb 10, 2012
1 parent f218917 commit 05836d6c89d6803893f353ad1825ffb4e95cf79f
Showing with 11 additions and 0 deletions.
  1. +11 −0 spec/mechanics/rotation_spec.rb
@@ -119,6 +119,17 @@ class RotatableObject
)
end
it "rotates after it moved" do
subject.translate! 1, 0, 0
subject.roll! Math::PI / 2
subject.matrix.should be_matrix_like(
[ 0, 0, 1, 0 ],
[ 0, 1, 0, 0 ],
[ -1, 0, 0, 0 ],
[ 1, 0, 0, 1 ]
)
end
end
end

0 comments on commit 05836d6

Please sign in to comment.