Immerse SDK
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

OrbitCamera

class in ImmerseSDK.SpectatorCamera / Inherits from MonoBehaviour

A simple camera controller for orbiting around a point or Transform.

Fields
Center The camera will rotate around and focus on this point
HorizontalOffset Apply an offset to the horizontal rotation. Useful when using limits
ScrollSpeed Multiplier for mouse scroll speed
Distance Camera distance from center
VerticalRotation Vertical rotation value
HorizontalRotation Horizontal rotation value
LimitDistance Apply limits to the camera’s distance from the center
LimitVerticalRotation Apply limits to the vertical rotation
LimitHorizontalRotation Apply limits to the horizontal rotation
Collision Use a SphereCast to stop the camera intersecting other objects in the scene
Methods
Update An overload test