Improve physics
This commit is contained in:
parent
8b87b68dae
commit
ec0b700313
14 changed files with 181 additions and 71 deletions
|
|
@ -5,9 +5,9 @@ export const settings = {
|
|||
hitDetectionCirclePointCount: 32,
|
||||
hitDetectionMaxOverlap: 0.01,
|
||||
physicsMaxStep: 5,
|
||||
gravitationalForce: vec2.fromValues(0, -0.015),
|
||||
gravitationalForce: vec2.fromValues(0, -0.005),
|
||||
maxVelocityX: 1.5,
|
||||
maxVelocityY: 8,
|
||||
velocityAttenuation: 0.99,
|
||||
maxVelocityY: 20,
|
||||
velocityAttenuation: 0.98,
|
||||
inViewAreaSize: 1920 * 1080 * 3,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue