mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 04:12:46 +02:00
can now fling up and down as well as in xz plane
This commit is contained in:
parent
2b9ec8b6bf
commit
45ba678686
1 changed files with 0 additions and 1 deletions
|
@ -100,7 +100,6 @@ function flingObject() {
|
||||||
|
|
||||||
flingVelocity = Vec3.subtract(entityProps.position, prevPosition);
|
flingVelocity = Vec3.subtract(entityProps.position, prevPosition);
|
||||||
flingVelocity = Vec3.multiply(flingMultiplier, flingVelocity);
|
flingVelocity = Vec3.multiply(flingMultiplier, flingVelocity);
|
||||||
flingVelocity.y = 0;
|
|
||||||
Entities.editEntity(grabbedEntity, {
|
Entities.editEntity(grabbedEntity, {
|
||||||
velocity: flingVelocity
|
velocity: flingVelocity
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue