We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a97c61d commit db9a302Copy full SHA for db9a302
examples/webvr_ballshooter.html
@@ -43,6 +43,8 @@
43
var normal = new THREE.Vector3();
44
var relativeVelocity = new THREE.Vector3();
45
46
+ var clock = new THREE.Clock();
47
+
48
init();
49
animate();
50
@@ -189,6 +191,8 @@
189
191
190
192
//
193
194
+ var delta = clock.getDelta();
195
196
var range = 3 - radius;
197
198
for ( var i = 0; i < room.children.length; i ++ ) {
@@ -251,7 +255,7 @@
251
255
252
256
}
253
257
254
- object.userData.velocity.y -= 0.00098;
258
+ object.userData.velocity.y -= 0.098 * delta;
259
260
261
0 commit comments