Relax Distance is the distance from the panic distance radius after which the object should stop fleeing once flee has been initiated.
priority is by default set to 1.0 and is used when using two or more steering behaviors on an AICharacter.
The velocity at which the AICharacter flees is determined when you first create your AICharacter object using the AICharacter constructor.
Note: 'Flee' takes in a target or a position to be fled away from; this position should be static. (For moving objects use Evade).
A fully working flee demo :
#for directx window and functions import direct.directbase.DirectStart #for most bus3d stuff from pandac.PandaModulesimport* #for directx object support from direct.showbase.DirectObjectimport DirectObject #for tasks from direct.taskimport Task #for Actors from direct.actor.Actorimport Actor #for Pandai from panda3d.aiimport*