Game Development Community

Findcontacts and mContactInfo.contactNormal

by Clint S. Brewer · in Torque Game Engine · 01/16/2005 (6:29 pm) · 2 replies

In player.cc

at the bottom of findContacts I see this code...

if (!(mContactInfo.contacted = !polyList.isEmpty()))
      mContactInfo.contactNormal = *contactNormal;
   mContactInfo.run = *run;
   mContactInfo.jump = *jump;

that looks a bit odd to me shouldn't it be

if (mContactInfo.contacted = !polyList.isEmpty())
      mContactInfo.contactNormal = *contactNormal;
   mContactInfo.run = *run;
   mContactInfo.jump = *jump;


so if contacted is true then we store a copy of the contactNormal?

#1
01/18/2005 (12:35 am)
Hmm, good call. On my todolist to inspect.
#2
03/14/2005 (11:07 pm)
Hmm... Yeah, I think you're right. At least, I updated it and nothing bad happened. :P

Good eye, Clint.