mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 22:39:18 +02:00
Fix drumstick script
This commit is contained in:
parent
300708b3a2
commit
1ccd47fd1d
1 changed files with 1 additions and 3 deletions
|
@ -64,9 +64,7 @@ function checkSticks(deltaTime) {
|
||||||
if ((palmVelocity.y > 0.0) || (speed < STOP_SPEED)) {
|
if ((palmVelocity.y > 0.0) || (speed < STOP_SPEED)) {
|
||||||
state[palm] = 0;
|
state[palm] = 0;
|
||||||
|
|
||||||
var options = {
|
var options = { position: Controller.getSpatialControlPosition(palm * 2 + 1) };
|
||||||
position: Controller.getSpatialControlPosition(palm * 2 + 1);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (strokeSpeed[palm] > 1.0) { strokeSpeed[palm] = 1.0; }
|
if (strokeSpeed[palm] > 1.0) { strokeSpeed[palm] = 1.0; }
|
||||||
options.volume = strokeSpeed[palm];
|
options.volume = strokeSpeed[palm];
|
||||||
|
|
Loading…
Reference in a new issue