HandCollisionsController
A class in Root.Township, the global namespace.
Turns per-finger hand colliders on and off to match the current hand gesture, so only extended fingers collide.
- Listed in Global namespace: E to H
- Inherits or implements
MonoBehaviour
Constructors
| Member | What it is |
|---|---|
HandCollisionsController() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
8 private and internal fields
Methods
| Member | What it is |
|---|---|
void DisableAllColliders() | Turns off every finger collider. |
void EnableCollidersForFreeMode(int fingerIndex, float axis) | Turns one finger's collider on while its axis is below the idle threshold. |
void EnabledCollidersForGesture(HandGestureDefinition gesture) | Turns on the colliders for the gesture's active fingers and off the rest. |
void EnabledCollidersForIdleGesture(HandGestureDefinition idleGesture, float gripAxis) | Turns all colliders off when grip is past the threshold, otherwise uses the idle gesture's fingers. |
2 private and internal methods
Used in
Members of other types that take, return or hold a HandCollisionsController: