Skip to content

Commit

Permalink
Document Controller:vibrate power argument;
Browse files Browse the repository at this point in the history
  • Loading branch information
bjornbytes committed Nov 25, 2017
1 parent 78af0c5 commit 073c490
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docs/Controller:vibrate.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ Controller:vibrate

Causes the Controller to vibrate.

controller:vibrate(duration)
controller:vibrate(duration, power)

### Arguments

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

### Returns

Expand All @@ -20,5 +21,6 @@ Nothing
Notes
---

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

0 comments on commit 073c490

Please sign in to comment.