def __init__(self, cr): DistributedSmoothNode.__init__(self, cr) BaseProjectileShared.__init__(self) BasePhysicsObject.__init__(self) NodePath.__init__(self, ModelRoot("BaseProjectile")) self.model = None self.impactSound = None
def disable(self): self.stopWaterCheck() self.cleanupPhysics() if self.model: self.model.removeNode() self.model = None self.impactSound = None BaseProjectileShared.cleanup(self) DistributedSmoothNode.disable(self)
def delete(self): BaseProjectileShared.cleanup(self) self.stop() DistributedSmoothNodeAI.delete(self)
def __init__(self, air): DistributedSmoothNodeAI.__init__(self, air) BaseProjectileShared.__init__(self)