BoundsChecker Component and unregister
by Jonathon Stevens · in Torque X 3D · 03/18/2007 (7:18 pm) · 0 replies
OK. So I'm testing out the boundschecker component that comes with the tankbuster template. According to the xml comment, this bad boy should unregister and clean the parent object as soon as it's out of view of the camera. I stepped through this component, and Owner.Manager.Unregister(Owner); is executed just fine. I stepped through it past that to see if an error occured, but none does. It appears to run through everything just fine.
The problem is, I can SEE the objects hit the world limit and bounce back coming across the screen again, even though they have been unreg'd.
Edit: I checked the object after the unregister bit and Owner is null after the unregister method is called.


The problem is, I can SEE the objects hit the world limit and bounce back coming across the screen again, even though they have been unreg'd.
Edit: I checked the object after the unregister bit and Owner is null after the unregister method is called.


About the author
With a few casual games under his belt as CEO of Last Straw Productions, Jonathon created the increasingly popular Indie MMO Game Developers Conference.