Improve movement
This commit is contained in:
parent
e01400058d
commit
9e35538b79
13 changed files with 164 additions and 125 deletions
|
|
@ -5,9 +5,13 @@ export const settings = {
|
|||
hitDetectionCirclePointCount: 32,
|
||||
hitDetectionMaxOverlap: 0.01,
|
||||
physicsMaxStep: 5,
|
||||
gravitationalForce: vec2.fromValues(0, -0.005),
|
||||
maxVelocityX: 1.5,
|
||||
maxVelocityY: 20,
|
||||
velocityAttenuation: 0.98,
|
||||
gravitationalForce: vec2.fromValues(0, -0.0055),
|
||||
maxVelocityX: 1,
|
||||
maxAccelerationX: 0.005,
|
||||
maxAccelerationY: 0.01,
|
||||
targetPhysicsDeltaTimeInMilliseconds: 10,
|
||||
minPhysicsSleepTime: 4,
|
||||
velocityAttenuation: 0.99,
|
||||
inViewAreaSize: 1920 * 1080 * 3,
|
||||
defaultJumpEnergy: 600,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue