Fix car sliding
This commit is contained in:
parent
745067d8cc
commit
72b28f2bb0
3 changed files with 13 additions and 5 deletions
|
@ -2,6 +2,9 @@
|
|||
#define _TINYPHYSICSENGINE_H
|
||||
|
||||
/**
|
||||
NOTE: This is a Licar specific fork of the library. Changes made can be
|
||||
found e.g. with diff.
|
||||
|
||||
tinyphysicsengine (TPE)
|
||||
|
||||
Simple/suckless header-only hybrid 3D physics engine with no floating point,
|
||||
|
@ -1038,7 +1041,9 @@ void TPE_worldStep(TPE_World *world)
|
|||
|
||||
if (hard)
|
||||
{
|
||||
TPE_bodyReshape(body,world->environmentFunction);
|
||||
/* Licar modification: we only reshape if the tension requires it. This
|
||||
prevents car from sliding when standing on ground. */
|
||||
// TPE_bodyReshape(body,world->environmentFunction);
|
||||
|
||||
bodyTension /= body->connectionCount;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue