mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 20:36:49 +02:00
Merge pull request #4899 from Nex-Pro/plankyUpdate
Planky Game. Added values for friction and restitution in the entity parameters.
This commit is contained in:
commit
6d20fa72db
1 changed files with 4 additions and 0 deletions
|
@ -23,6 +23,8 @@ const GRAVITY = {x: 0, y: -2.8, z: 0};
|
||||||
const DENSITY = 2000;
|
const DENSITY = 2000;
|
||||||
const DAMPING_FACTOR = 0.98;
|
const DAMPING_FACTOR = 0.98;
|
||||||
const ANGULAR_DAMPING_FACTOR = 0.8;
|
const ANGULAR_DAMPING_FACTOR = 0.8;
|
||||||
|
const FRICTION = 0.99;
|
||||||
|
const RESTITUTION = 0.0;
|
||||||
const SPAWN_DISTANCE = 3;
|
const SPAWN_DISTANCE = 3;
|
||||||
const BLOCK_YAW_OFFSET = 45;
|
const BLOCK_YAW_OFFSET = 45;
|
||||||
const BUTTON_DIMENSIONS = {width: 49, height: 49};
|
const BUTTON_DIMENSIONS = {width: 49, height: 49};
|
||||||
|
@ -110,6 +112,8 @@ function resetBlocks() {
|
||||||
rotation: Quat.multiply(layerRotation, offsetRot),
|
rotation: Quat.multiply(layerRotation, offsetRot),
|
||||||
collisionsWillMove: true,
|
collisionsWillMove: true,
|
||||||
damping: DAMPING_FACTOR,
|
damping: DAMPING_FACTOR,
|
||||||
|
restitution: RESTITUTION,
|
||||||
|
friction: FRICTION,
|
||||||
angularDamping: ANGULAR_DAMPING_FACTOR,
|
angularDamping: ANGULAR_DAMPING_FACTOR,
|
||||||
gravity: GRAVITY,
|
gravity: GRAVITY,
|
||||||
density: DENSITY
|
density: DENSITY
|
||||||
|
|
Loading…
Reference in a new issue