Game Development Community

Why i receiver onWorldLimit callback twice?

by Kenny · in Torque Game Builder · 03/04/2007 (7:56 pm) · 1 replies

$Enemy.setWorldLimit(BOUNCE,-50,-40,50,40,1);

when Enemy Fly hit the wall,i get two echo message.
why i receiver onWorldLimit callback twice?


onWorldLimit(xxxx,xxx,xxx)
{
echo("xxx");
}

#1
03/05/2007 (11:24 am)
@Kenny, echo out the collision data ... perhaps it's hitting two different limits ... (a corner collision will do this) -- or if your collision poly is custom, it could be that one part of the object hits the world limit ... then during the 'bounce' reaction, another part touches the wall (due to rotations caused by physics or custom code?)

Without more info, it's hard to really say ... there are some known issues with the way collisions are handled though ... bounce in particular, someone just recently posted some 'tweaks' to help correct them, however there still flagged as 'unstable' as they haven't been thoroughly tested, etc, etc ...