Skip to content

Commit d4e86d0

Browse files
Update readme.md
1 parent 648d869 commit d4e86d0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

readme.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -439,10 +439,11 @@ If you would like to quickly set up a first-person mode, you can modify these pr
439439

440440
```js
441441
<Ecctrl
442+
camCollision={false} // disable camera collision detect (useless in FP mode)
442443
camInitDis={-0.01} // camera intial position
443444
camMinDis={-0.01} // camera zoom in closest position
444-
camFollowMult={100} // give any big number here, so the camera follows the target (character) instantly
445-
camLerpMult={1000} // give any big number here, so the camera lerp to the followCam position instantly
445+
camFollowMult={1000} // give a big number here, so the camera follows the target (character) instantly
446+
camLerpMult={1000} // give a big number here, so the camera lerp to the followCam position instantly
446447
turnVelMultiplier={1} // Turning speed same as moving speed
447448
turnSpeed={100} // give it big turning speed to prevent turning wait time
448449
mode="CameraBasedMovement" // character's rotation will follow camera's rotation in this mode

0 commit comments

Comments
 (0)