clean up 3d controls
This commit is contained in:
parent
8266789fe3
commit
94f872e536
|
@ -682,23 +682,13 @@ class VoxelPainterControls {
|
|||
panOffset.set(0, 0, 0);
|
||||
}
|
||||
target.add(panOffset);
|
||||
/*
|
||||
if (scope.target.y < 10.0) {
|
||||
scope.target.y = 10.0;
|
||||
}
|
||||
*/
|
||||
|
||||
// clamp to boundaries
|
||||
const bound = state.canvas.canvasSize / 2;
|
||||
target.clamp({
|
||||
x: -bound,
|
||||
y: 0,
|
||||
z: -bound,
|
||||
}, {
|
||||
x: bound,
|
||||
y: THREE_CANVAS_HEIGHT,
|
||||
z: bound,
|
||||
});
|
||||
target.clamp(
|
||||
{ x: -bound, y: 0, z: -bound },
|
||||
{ x: bound, y: THREE_CANVAS_HEIGHT, z: bound },
|
||||
);
|
||||
|
||||
offset.setFromSpherical(spherical);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user