Skip to content

Commit 413d50c

Browse files
committed
Fixed rotateAround method
1 parent 2062b62 commit 413d50c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

v3/src/camera/Camera3D.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,11 @@ var Camera3D = new Class({
123123

124124
rotateAround: function (point, radians, axis)
125125
{
126-
tmpVec.copy(point).sub(this.position);
126+
tmpVec3.copy(point).sub(this.position);
127127

128-
this.translate(tmpVec);
128+
this.translate(tmpVec3);
129129
this.rotate(radians, axis);
130-
this.translate(tmpVec.negate());
130+
this.translate(tmpVec3.negate());
131131

132132
return this;
133133
},

0 commit comments

Comments
 (0)