1.0.4 • Published 3 years ago

@repcomm/three.lookcamera v1.0.4

Weekly downloads
-
License
Unlicense
Repository
github
Last release
3 years ago

three.lookcamera

A look camera and freecamera for your three.js projects

Depends only on three.js

Comes with d.ts typescript definitions

Doesn't force you to use any weird input system

Shameless plug if you need a procedural input lib

Example

npm install @repcomm/three.lookcamera

import { FreeCamera } from "@repcomm/three.lookcamera";

const freecam = new FreeCamera ();

scene.add( freecam );

// freecam.getCamera(); // for when you want to render with it

//game input loop

//move the camera, typically with WASD/arrow keys
freecam.addMovementInput( forwardDelta , sideDelta );

//rotate the camera, typically with the mouse
freecam.addRotationInput ( horizontalDelta, verticalDelta );
1.0.2

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago