Search found 2 matches

by Brad_Mclain
Sun Sep 12, 2010 3:24 am
Forum: Questions and Help
Topic: Removing object after collision
Replies: 5
Views: 6019

Re: Removing object after collision

Thanks doing the check before removal fixed up the problem.

Maybe adding a way (if it doesn't already exist) to tag entities for deletion at the end of the space update cycle?
by Brad_Mclain
Sat Sep 11, 2010 11:28 pm
Forum: Questions and Help
Topic: Removing object after collision
Replies: 5
Views: 6019

Removing object after collision

Hi I am trying to remove an entity after collision with any other object I have added an event hook and am I trying to remove the entity from the space in the handler. The code I used to do this is something like the following: space.add(rocketBox); rocketBox.eventManager.addEventHook(new EventHandl...