-
-
Notifications
You must be signed in to change notification settings - Fork 2
Scaling Direct Interactor
eisclimber edited this page Nov 3, 2024
·
3 revisions
class in ExPresSXR.Rig / Extends ExPresSXR.Rig.XRDirectInteractor
Component added via Component Menu
Allows direct interactions with XRInteractables whilst also allowing them to be scaled, if they were configured as a Scalable Grab Interactable.
-
bool scalingEnabled
: Whether or not scaling is enabled/possible. -
bool scaleSpeed
: How fast the scale is in-/decreased. Will be synchronized with deltaTime. -
bool hasScalingSelection
: (Readonly) Whether or not a Scalable Grab Interactable is currently selected.
-
void ProcessInteractor()
: Used internally. Processes interactables like a DirectInteractor but also performs scaling on valid Interactables. -
TryGetSelectedScaleInteractableWrapper(out ScalableGrabInteractable _scaleInteractable)
: Tries to get the selected ScalableGrabInteractable by this Interactor.
-
bool TryRead2DAxis(InputAction action, out Vector2 output)
: Copied from the XRRayInteractor because it is not accessible in this scope. Reads the value from the given InputAction as Vector2. -
void ScaleSelection(float directionAmount)
: Scales the Selection by the directionAmount (+/-1.0f) if it is a ScalableGrabInteractable.
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