|
Serious Game - Electrónica VR 1.0.0
|
Centraliza la retroalimentación háptica del Explorador: More...


Public Member Functions | |
| void | PlayLight () |
| Toque suave — conectar punta del multímetro. | |
| void | PlayMedium () |
| Pulso medio — agarrar componente, insertar cable. | |
| void | PlayStrong () |
| Vibración fuerte — reparación completada con éxito. | |
| void | PlayError () |
| Patrón de error — acción incorrecta. | |
| void | PlayCurrent (float current) |
| Vibración proporcional a la corriente del circuito. Llamar desde CircuitManager.OnCircuitChanged. | |
Public Attributes | |
| float | lightIntensity = 0.3f |
| float | mediumIntensity = 0.6f |
| float | strongIntensity = 1.0f |
| bool | chalecoEnabled = false |
| float | maxCurrentForHaptic = 0.1f |
Private Member Functions | |
| void | Start () |
| void | RefreshDevices () |
| void | Vibrate (float amplitude, float duration) |
| IEnumerator | ErrorPattern () |
| void | SendToVest (float intensity) |
Private Attributes | |
| InputDevice | _leftController |
| InputDevice | _rightController |
Centraliza la retroalimentación háptica del Explorador:
Uso desde otros scripts: haptics.PlayLight(); → toque suave (conectar punta multímetro) haptics.PlayMedium(); → pulso (agarrar componente) haptics.PlayStrong(); → vibración fuerte (reparación exitosa) haptics.PlayError(); → patrón de error (componente incorrecto) haptics.PlayCurrent(0.5f); → vibración proporcional a corriente
|
private |
| void HapticFeedback.PlayCurrent | ( | float | current | ) |
Vibración proporcional a la corriente del circuito. Llamar desde CircuitManager.OnCircuitChanged.
| void HapticFeedback.PlayError | ( | ) |
Patrón de error — acción incorrecta.
| void HapticFeedback.PlayLight | ( | ) |
Toque suave — conectar punta del multímetro.
| void HapticFeedback.PlayMedium | ( | ) |
Pulso medio — agarrar componente, insertar cable.
| void HapticFeedback.PlayStrong | ( | ) |
Vibración fuerte — reparación completada con éxito.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
| bool HapticFeedback.chalecoEnabled = false |
| float HapticFeedback.lightIntensity = 0.3f |
| float HapticFeedback.maxCurrentForHaptic = 0.1f |
| float HapticFeedback.mediumIntensity = 0.6f |
| float HapticFeedback.strongIntensity = 1.0f |