Skip to content

Commit cf9e084

Browse files
authored
Replace cylinder with cone geometry for arrow head (#30867)
1 parent 8839644 commit cf9e084

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/helpers/ArrowHelper.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Float32BufferAttribute } from '../core/BufferAttribute.js';
22
import { BufferGeometry } from '../core/BufferGeometry.js';
33
import { Object3D } from '../core/Object3D.js';
4-
import { CylinderGeometry } from '../geometries/CylinderGeometry.js';
4+
import { ConeGeometry } from '../geometries/ConeGeometry.js';
55
import { MeshBasicMaterial } from '../materials/MeshBasicMaterial.js';
66
import { LineBasicMaterial } from '../materials/LineBasicMaterial.js';
77
import { Mesh } from '../objects/Mesh.js';
@@ -53,7 +53,7 @@ class ArrowHelper extends Object3D {
5353
_lineGeometry = new BufferGeometry();
5454
_lineGeometry.setAttribute( 'position', new Float32BufferAttribute( [ 0, 0, 0, 0, 1, 0 ], 3 ) );
5555

56-
_coneGeometry = new CylinderGeometry( 0, 0.5, 1, 5, 1 );
56+
_coneGeometry = new ConeGeometry( 0.5, 1, 5, 1 );
5757
_coneGeometry.translate( 0, - 0.5, 0 );
5858

5959
}

0 commit comments

Comments
 (0)