Skip to content

Commit 8b3b4e3

Browse files
author
Maria Barot
committed
pivot: code review comment addressed - change to pivot position
1 parent 84d7eac commit 8b3b4e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/depthkit.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export default class Depthkit extends THREE.Object3D {
8484
//
8585
var pivot = new THREE.Object3D();
8686
pivot.frustumCulled = false;
87-
pivot.position.z = ((this.props.farClip - this.props.nearClip)/2.0) - this.props.nearClip;
87+
pivot.position.z = -((this.props.farClip - this.props.nearClip)/2.0) - this.props.nearClip;
8888

8989
this.add(pivot);
9090
pivot.add(this._instanceMesh);

0 commit comments

Comments
 (0)