Skip to content

Forward Rotator

eisclimber edited this page Feb 11, 2024 · 1 revision

Menu Manager

class in ExPresSXR.Misc / Extends MonoBehavior
Component added via Component Menu

Description

Follows the provided forward vector with its forward over time. Can be used to create a menu that smoothly follows the player.

Members

Editor Properties

  • Transform _followTransform: The transform providing the direction and position where the menu is shown. Should usually be the rig's Main Camera.
  • float _orbitDistance: The distance to the center of _followTransform the menu is placed. Default: 3.0f
  • float _lerpSpeed: The speed at which the transform rotates towards the 'followTransform'.Default: 1.0f
  • float _moveAngeThreshold: The angle threshold for following. Slight movements will not trigger movement to keep it more stable. Default: 15.0f

Constants

  • float LERP_STOP_ANGLE = 1.0f: Angle to the desired angle at which a lerp is considered complete.

ExPresS XR Wiki

Tutorial Pages

Code Documentation

Clone this wiki locally