lazd / DuneBuggy

A 3D multiplayer dune buggy battle game written entirely in JavaScript
Other
10 stars 5 forks source link

Camera should chase the buggy at a fixed height #1

Closed lazd closed 11 years ago

lazd commented 11 years ago

The camera should always be behind the buggy, chasing it at a fixed Y height. The camera should follow the buggy's Y rotation, but not X or Z.

A potential resource: http://stackoverflow.com/questions/11665562/three-js-how-to-use-quaternion-to-rotate-camera

lazd commented 11 years ago

A chase camera implementation that seems to work well: https://github.com/BKcore/HexGL/blob/master/bkcore/hexgl/CameraChase.js

lazd commented 11 years ago

This has everything to do with Euler order: https://github.com/mrdoob/three.js/issues/835

lazd commented 11 years ago

This is good enough for the moment, closing this issue for now.