Skip to content

Commit fea30ea

Browse files
synced property value with playcanvas
1 parent f01800b commit fea30ea

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

packages/dev/threejs/lib/api/inputs/threejs-camera-inputs.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ describe("ThreeJSCamera DTO unit tests", () => {
7373
expect(result.orbitSensitivity).toBe(0.3);
7474
expect(result.distanceSensitivity).toBe(0.15);
7575
expect(result.panSensitivity).toBe(1);
76-
expect(result.inertiaFactor).toBe(0.1);
76+
expect(result.inertiaFactor).toBe(0);
7777
expect(result.autoRender).toBe(true);
7878
expect(result.frameOnStart).toBe(true);
7979
expect(result.enableDamping).toBe(true);

packages/dev/threejs/lib/api/inputs/threejs-camera-inputs.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,13 +172,13 @@ export namespace ThreeJSCamera {
172172
*/
173173
panSensitivity = 1;
174174
/**
175-
* Inertia factor for smooth camera movement (0 = no inertia, higher values = more inertia/smoother movement)
176-
* @default 0.1
175+
* Inertia factor for smooth camera movement (0 = no inertia, 1 = maximum inertia)
176+
* @default 0
177177
* @minimum 0
178178
* @maximum 1
179-
* @step 0.05
179+
* @step 0.1
180180
*/
181-
inertiaFactor = 0.1;
181+
inertiaFactor = 0;
182182
/**
183183
* Whether the camera should trigger automatic rendering on changes
184184
* @default true

0 commit comments

Comments
 (0)