Game Development Community


#1
08/07/2005 (11:28 am)
When the player dies, its type mask changes from 'PlayerObjectType' to 'CorpseObjectType' or some such. The type mask is used in collision detection to determine if something should be collided with. Somewhere in the projectile code there will be a call to something like 'setCollisionMasks(mask).' If you add 'CorpseObjectType' to the mask (mask |= CorpseObjectType;), then the projectile should collide with corpses.

Alternatively, you could remove the type mask change when the player dies, but I'm not sure if that would have side effects.