basic Ai

Hi folks,

I’m fairly new to panda3d, I am currently doing a space shoot em up and I want to organise some AI.

I was thinking of using collision spheres polling once every 20 or so frames as basic enemy detection. Ie: if the player moves into the sphere the enemy engages them, if the enemies distances from their origin exceeds a certain value it (as they pursued the player for example) returns to its guard post so to speak and resumes guaard duty.

I am still a noob with panda so if there is a more efficient or better way of doing this for example… I’m very open to suggestions.

Cheers
Sladuh