You are reading Tres v1 docs. Head over for V2 docs.
Skip to content
On this page


<PamCameraMouse /> is a component that allow you to create easily the pam mouse camera effect. The camera will update automatically according to the mouse position, creating a beautiful nice effect


You only need import it and use it <PamCameraMouse /> additionally you can pass two props, disabled and factor. Factor is a number to increase the movement range of the camera

    <PamCameraMouse />
      <Text3D text="TresJS" font="/fonts/FiraCodeRegular.json">
        <TresMeshNormalMaterial />


By the nature of the pam mouse camera effect it creates conflicts if it's used in combination with OrbitControls

Props [1]

disabledenable or disabled the effect, booleanfalse
factorNumber use to increase the range of the camera movement5