mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-09 07:20:40 +00:00
filter out self-collisions
This commit is contained in:
parent
3c7d2b1b6a
commit
783a757427
1 changed files with 5 additions and 0 deletions
|
|
@ -1278,6 +1278,11 @@ bool RigidShape::resolveCollision(Rigid& ns,CollisionList& cList, F32 dt)
|
|||
for (S32 i = 0; i < cList.getCount(); i++)
|
||||
{
|
||||
Collision& c = cList[i];
|
||||
if (c.object == this)
|
||||
{
|
||||
//Con::printf("IMPOSSIBLE!!!!--------------------------------> Self-collision event?");
|
||||
continue;
|
||||
}
|
||||
if (c.distance < mDataBlock->collisionTol)
|
||||
{
|
||||
// Velocity into surface
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue