feat: lerp flashlight pos
This commit is contained in:
@@ -135,7 +135,7 @@ export default function Player() {
|
|||||||
camera.position.addScaledVector(side, moveBobX);
|
camera.position.addScaledVector(side, moveBobX);
|
||||||
|
|
||||||
if (flashlightRef.current) {
|
if (flashlightRef.current) {
|
||||||
flashlightRef.current.position.copy(camera.position);
|
flashlightRef.current.position.lerp(camera.position, 7 * dt);
|
||||||
camera.getWorldDirection(viewDirection);
|
camera.getWorldDirection(viewDirection);
|
||||||
|
|
||||||
targetDest
|
targetDest
|
||||||
|
|||||||
Reference in New Issue
Block a user