1.1.0 • Published 4 years ago

aframe-orbit-camera-component v1.1.0

Weekly downloads
3
License
Apache-2.0
Repository
github
Last release
4 years ago

aframe-orbit-camera-component

This is a modified version of the AFrame Orbict Controls Component. It allows users to rotate the camera around the center of the screen.

API

PropertyDescriptionDefault Value
enabledBoolean – defines if the Orbit Controls are usedfalse
targetString – the object the camera is looking at and orbits around''
enableRotateBoolean – defines if the camera can be rotatedtrue
rotateSpeedNumber – rotation speed1
enableZoomBoolean – defines if the camera can be zoomed in or outtrue
invertZoomBoolean – defines if zooming is invertedfalse
zoomSpeedNumber – zoom speed1
enablePanBoolean – defines if the camera can be panned (using the arrow keys)true
panSpeedNumber – panning speed7
enableDampingBoolean – defines if the rotational movement of the camera is damped / easedfalse
dampingFactorNumber – damping factor0.25
minAzimuthAngleNumber – minimum azimuth angle – Defines how far you can orbit horizontally, lower limit-Infinity
maxAzimuthAngleNumber – maximum azimuth angle – Defines how far you can orbit horizontally, upper limitInfinity
minPolarAngleNumber – minimum polar angle – Defines how far you can orbit vertically, lower limit0
maxPolarAngleNumber – maximum polar angle – Defines how far you can orbit vertically, upper limitMath.PI
minZoomNumber – minimum zoom value – Defines how far you can zoom out for Orthographic Cameras0
maxZoomNumber – maximum zoom value – Defines how far you can zoom in for Orthographic CamerasInfinity
minDistanceNumber – minimum distance – Defines how far you can zoom in for Perspective Cameras0
maxDistanceNumber – maximum distance – Defines how far you can zoom out for Perspective CamerasInfinity
logPositionBoolean – prints out camera position to console.log() when rotatingtrue
1.1.0

4 years ago

1.0.0

4 years ago