-
-
Notifications
You must be signed in to change notification settings - Fork 2
Elevation Changer
eisclimber edited this page Feb 11, 2024
·
2 revisions
class in ExPresSXR.Minigames.CoinScale / Extends UnityEngine.MonoBehaviour
Component added via Component Menu
This script represents one side of a scale, changing it's position as a delegate of a scale.
Make sure to add a Rigidbody (as a child) and lock it's movement/rotation. This guarantees that objects are pushed correctly (See the "Push Bases" of the Scale for reference).
-
float _minHeight
: Min. height of this scale side. Default:-0.1f
-
float _maxHeight
: Max. height of this scale side. Default:0.1f
-
float _centerHeight
: Center height of this scale side. Default:0.0f
-
float _speed
: Speed when changing elevation. Default:0.1f
-
float _middleDeadzoneThreshold
: Deadzone for reaching the neutral position. Default:0.01f
-
void Activate(ScaleState state)
: Starts the transitions from the current to the provided state (=elevation).
-
ElevationTarget
: Possible elevations, mapped to absolute delta values. EitherDown = -1
,Middle = 0
orUp = 1
.
Autor: Luca 'eisclimber' Dreiling; License: MIT
- Getting Started
- Development and Contribution
- Misc
- Experimentation
- Data Gatherering
- Eye Tracking
- ExPresS XR Rig
- Interaction
- Base Button
- Button Quiz
- Collision Hand Rumbler
- Collision Sound Emitter
- Exit Game Interactable (Script Deprecated)
- Interactables
- Haptic Impulse Trigger
- Socket Interactors
- Inverse Kinematics
- Localization
- Minigames
- Coin Scale
- Coin Throw
- Sword Cleaning
- Misc
- Movement
- Presentation
- UI