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 :
import direct.directbase.DirectStart from panda3d.coreimport* from direct.showbase.DirectObjectimport DirectObject from direct.taskimport Task from direct.actor.Actorimport Actor #for Pandai from panda3d.aiimport*