public class LeaderFollowing extends SeekBehaviour
PursuitBehaviour| Modifier and Type | Class and Description |
|---|---|
static class |
LeaderFollowing.LeaderFollowWithoutLeader |
static class |
LeaderFollowing.negativeDistanceToChangeFocus |
static class |
LeaderFollowing.negativeDistanceToEvade |
AbstractStrengthSteeringBehaviour.negativeScalarMultiplierAbstractSteeringBehaviour.IllegalBrakingFactorBehaviour.behaviourNullAgentExceptionvelocity| Constructor and Description |
|---|
LeaderFollowing(Agent agent,
Agent target) |
LeaderFollowing(Agent agent,
Agent target,
float distanceToEvade,
float distanceToChangeFocus,
float minimunAngle) |
LeaderFollowing(Agent agent,
Agent target,
float distanceToEvade,
float distanceToChangeFocus,
float minimunAngle,
com.jme3.scene.Spatial spatial) |
LeaderFollowing(Agent agent,
Agent target,
com.jme3.scene.Spatial spatial) |
| Modifier and Type | Method and Description |
|---|---|
protected com.jme3.math.Vector3f |
calculateFullSteering()
Calculate steering vector.
|
controlRender, getSeekingPos, getTarget, setSeekingPos, setTargetcalculateSteering, setupStrengthControl, setupStrengthControl, setupStrengthControl, setupStrengthControl, turnOffStrengthControlagentTotalMass, calculateNewVelocity, controlUpdate, getBrakingFactor, getTPF, getVelocity, rotateAgent, setBrakingFactor, setTPF, setVelocitypublic LeaderFollowing(Agent agent, Agent target, float distanceToEvade, float distanceToChangeFocus, float minimunAngle)
distanceToChangeFocus - Distance to change the focus: After the agent distance
to the target is lower than this distance, the agent
will progressively stop seeking the future position
and instead, directly seek the target.distanceToEvade - If the agent is in front of the target and the distance
to him is lower than distanceToEvade, the agent will evade
him in order to stay out of his way.minimunAngle - Minimum angle betwen the target velocity and the vehicle location.LeaderFollowing.LeaderFollowWithoutLeader - If target is nullLeaderFollowing.negativeDistanceToEvade - If distanceToEvade is lower than 0LeaderFollowing.negativeDistanceToChangeFocus - If distanceToEvade is lower than 0LeaderFollowing(com.jme3.ai.agents.Agent, com.jme3.ai.agents.Agent)protected com.jme3.math.Vector3f calculateFullSteering()
SeekBehaviourcalculateFullSteering in class SeekBehaviourAbstractStrengthSteeringBehaviour.calculateFullSteering()