Skip to content

v1.4.2 — Add snapToDirection() camera API

Choose a tag to compare

@Nano112 Nano112 released this 09 Jun 14:37
· 8 commits to master since this release

Adds a small camera API.

Changes

  • snapToDirection([x, y, z], refocus?). Snaps the perspective camera to view the scene from an arbitrary world-space direction (the vector points from the scene centre to the camera), then optionally refocuses. Lets callers define their own face / diagonal view angles without registering a named snap preset.