Game Development Community

TGB onCollision function getting empty arguments!

by Quentin Headen · in General Discussion · 10/18/2010 (5:31 am) · 1 replies

Hello everyone! I am trying to make my behavior work, but I am having trouble with the onCollision function. That function has different parameters that gives the objects that are colliding, but for some reason, all of the parameters are blank except, of course, the first %this parameter. Yes the function is being called and I enabled collisions on both objects.

Why is this happening? Please help me with this because I can't make my behavior without this function.

Thanks

About the author

Just your average programmer who tries to finish the projects he starts. :) I am currently focused on creating games with Torque engines. My website is http://phaseshiftsoftware.com


#1
10/18/2010 (5:13 pm)
Nevermind everyone. It was a problem the TorqueDev IDE (Codeweaver). I was hitting a breakpoint and checking the variables there. For some reason, the IDE shows the variables as being empty. When I checked them with an echo statement though, they are filled with the needed information.

Thanks anyways.