Skip to content

Commit 073c490

Browse files
committed
Document Controller:vibrate power argument;
1 parent 78af0c5 commit 073c490

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docs/Controller:vibrate.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@ Controller:vibrate
77

88
Causes the Controller to vibrate.
99

10-
controller:vibrate(duration)
10+
controller:vibrate(duration, power)
1111

1212
### Arguments
1313

1414
- `number duration` The amount of time to vibrate the Controller, in seconds.
15+
- `number power (1)` The strength of the vibration, between 0 and 1.
1516

1617
### Returns
1718

@@ -20,5 +21,6 @@ Nothing
2021
Notes
2122
---
2223

23-
On the HTC Vive, the value for `duration` currently must be less than .004 seconds. Call this
24-
function several frames in a row for stronger or prolonged vibration patterns.
24+
On the HTC Vive, the value for `duration` currently must be less than .004 seconds, and the `power`
25+
is always set to 1.0. Call this function several frames in a row over several frames for stronger
26+
or prolonged vibration patterns.

0 commit comments

Comments
 (0)