mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
doubleup on dt (usually denotes delta-time. in this case also incorporates time-of-collision)
This commit is contained in:
parent
cffc9d3afe
commit
871b498d73
1 changed files with 3 additions and 3 deletions
|
|
@ -891,9 +891,9 @@ void Item::updatePos(const U32 /*mask*/, const F32 dt)
|
|||
if (collisionList.getTime() < 1.0)
|
||||
{
|
||||
// Set to collision point
|
||||
F32 dt = time * collisionList.getTime();
|
||||
pos += mVelocity * dt;
|
||||
time -= dt;
|
||||
F32 cdt = time * collisionList.getTime();
|
||||
pos += mVelocity * cdt;
|
||||
time -= cdt;
|
||||
|
||||
// Pick the most resistant surface
|
||||
F32 bd = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue