tweaks
This commit is contained in:
parent
61d1fedfc1
commit
6f6e59bcd5
|
|
@ -65,7 +65,7 @@
|
||||||
|
|
||||||
const physics = document.querySelector('folk-physics');
|
const physics = document.querySelector('folk-physics');
|
||||||
let orientationEvent;
|
let orientationEvent;
|
||||||
const GRAVITY_SCALE = 100;
|
const GRAVITY_SCALE = 500;
|
||||||
|
|
||||||
function tick() {
|
function tick() {
|
||||||
requestAnimationFrame(tick);
|
requestAnimationFrame(tick);
|
||||||
|
|
@ -95,8 +95,8 @@
|
||||||
Gizmos.vector(
|
Gizmos.vector(
|
||||||
center,
|
center,
|
||||||
{
|
{
|
||||||
x: center.x + gravity.x / 10,
|
x: center.x + gravity.x,
|
||||||
y: center.y + gravity.y / 10,
|
y: center.y + gravity.y,
|
||||||
},
|
},
|
||||||
{ color: 'grey', width: 3, size: 15 },
|
{ color: 'grey', width: 3, size: 15 },
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue