mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 08:04:01 +02:00
Check that the velocity information is passed correctly and fixed clap.js
This commit is contained in:
parent
2db87e0d2d
commit
0ad4634eac
1 changed files with 6 additions and 2 deletions
|
@ -71,8 +71,12 @@ function maybePlaySound(deltaTime) {
|
|||
var palm2Position = MyAvatar.getRightPalmPosition();
|
||||
var distanceBetween = Vec3.length(Vec3.subtract(palm1Position, palm2Position));
|
||||
|
||||
var palm1Velocity = Controller.getSpatialControlVelocity(1);
|
||||
var palm2Velocity = Controller.getSpatialControlVelocity(3);
|
||||
var palmPose = Controller.getPoseValue(Controller.Standard.LeftHand);
|
||||
|
||||
|
||||
|
||||
var palm1Velocity = Controller.getPoseValue(Controller.Standard.LeftHand).velocity;
|
||||
var palm2Velocity = Controller.getPoseValue(Controller.Standard.RightHand).velocity;
|
||||
var closingVelocity = Vec3.length(Vec3.subtract(palm1Velocity, palm2Velocity));
|
||||
|
||||
const CLAP_SPEED = 0.7;
|
||||
|
|
Loading…
Reference in a new issue