Skip to content

Commit

Permalink
Adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
alemart committed Dec 31, 2019
1 parent ba94d7d commit 4d9e29e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/physics/physicsactor.c
Original file line number Diff line number Diff line change
Expand Up @@ -924,7 +924,7 @@ void run_simulation(physicsactor_t *pa, const obstaclemap_t *obstaclemap)
}
else {
/* braking */
float brk = pa->frc + pa->frc * 5.0f * fabs(SIN(pa->angle));
float brk = pa->frc * (1.5f + 3.0f * fabs(SIN(pa->angle)));
if(fabs(pa->gsp) <= brk * dt) {
pa->gsp = 0.0f;
pa->state = PAS_STOPPED;
Expand Down

0 comments on commit 4d9e29e

Please sign in to comment.