-
-
Notifications
You must be signed in to change notification settings - Fork 2
Average Velocity
eisclimber edited this page Apr 20, 2024
·
1 revision
class in ExPresSXR.Movement / Extends MonoBehavior
Component added via Component Menu
Calculates the average velocity of the component it is attached to.
-
int _numSamples
: Number of position samples used to calculate the velocity. Default: 3
-
void SwitchMapPoint(MapPoint newMapPoint)
: Retrieves the current estimated velocity. Returns (0, 0, 0) if none and the GameObjects position if only one sample was gathered. -
bool HasEnoughSamples()
: Can be used to check if enough samples(=_numSamples
) have been gathered to calculate the average velocity.
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