Skip to content

Commit 41f3f99

Browse files
committed
Compatible with Three R113
1 parent b091cf6 commit 41f3f99

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/models/Arrow.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ ROS3D.Arrow = function(options) {
3434
12, 1);
3535
var m = new THREE.Matrix4();
3636
m.setPosition(new THREE.Vector3(0, shaftLength * 0.5, 0));
37-
geometry.applyMatrix(m);
37+
geometry.applyMatrix4(m);
3838

3939
// create the head
4040
var coneGeometry = new THREE.CylinderGeometry(0, headDiameter * 0.5, headLength, 12, 1);
4141
m.setPosition(new THREE.Vector3(0, shaftLength + (headLength * 0.5), 0));
42-
coneGeometry.applyMatrix(m);
42+
coneGeometry.applyMatrix4(m);
4343

4444
// put the arrow together
4545
geometry.merge(coneGeometry);

0 commit comments

Comments
 (0)