mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-17 19:31:01 +00:00
restitution sumation review: average, don't multiply
This commit is contained in:
parent
f3af564dee
commit
e7b3a95f89
1 changed files with 1 additions and 1 deletions
|
|
@ -156,7 +156,7 @@ bool Rigid::resolveCollision(const Point3F& p, const Point3F &normal, Rigid* rig
|
|||
return false;
|
||||
|
||||
// Compute impulse
|
||||
F32 d, n = -nv * (2.0f + restitution * rigid->restitution);
|
||||
F32 d, n = -nv * (1.0+(restitution + rigid->restitution)*0.5);
|
||||
Point3F a1,b1,c1;
|
||||
mCross(r1,normal,&a1);
|
||||
invWorldInertia.mulV(a1,&b1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue