public class HideBehavior extends AbstractStrengthSteeringBehavior
timePerFrame, velocity
Constructor and Description |
---|
HideBehavior(Agent agent,
Agent target,
java.util.List<GameEntity> obstacles,
float separationFromObstacle) |
HideBehavior(Agent agent,
Agent target,
java.util.List<GameEntity> obstacles,
float separationFromObstacle,
com.jme3.scene.Spatial spatial) |
Modifier and Type | Method and Description |
---|---|
protected com.jme3.math.Vector3f |
calculateRawSteering()
If a behavior class extend from CompoundSteeringBehaviour instead of
AbstractSteeringBehavior, it must implement this method instead of
calculateSteering().
|
void |
setObstacles(java.util.List<GameEntity> obstacles) |
calculateSteering, setupStrengthControl, setupStrengthControl, setupStrengthControl, setupStrengthControl, setupStrengthControl, turnOffStrengthControl
agentTotalMass, calculateNewVelocity, controlUpdate, convertToGameEntities, getBrakingFactor, getTimePerFrame, getVelocity, rotateAgent, setBrakingFactor, setTimePerFrame, setVelocity
controlRender
public HideBehavior(Agent agent, Agent target, java.util.List<GameEntity> obstacles, float separationFromObstacle)
obstacles
- Obstacles that this agent will use to hide from the
targetseparationFromObstacle
- Distance from the obstacle surface that
this agent will maintainSteeringExceptions.NegativeValueException
- If
separationFromObstacle is lower than 0BehaviorExceptions.TargetNotFoundException
- If target is nullAbstractSteeringBehaviour#AbstractSteeringBehaviour(com.jme3.ai.agents.Agent)
public HideBehavior(Agent agent, Agent target, java.util.List<GameEntity> obstacles, float separationFromObstacle, com.jme3.scene.Spatial spatial)
protected com.jme3.math.Vector3f calculateRawSteering()
AbstractStrengthSteeringBehavior
calculateRawSteering
in class AbstractStrengthSteeringBehavior
AbstractStrengthSteeringBehavior.calculateRawSteering()
public void setObstacles(java.util.List<GameEntity> obstacles)