public class HideBehaviour extends AbstractStrengthSteeringBehaviour
Modifier and Type | Class and Description |
---|---|
static class |
HideBehaviour.HideWithoutTarget |
static class |
HideBehaviour.negativeSeparationFromObstacle |
AbstractStrengthSteeringBehaviour.negativeScalarMultiplier
AbstractSteeringBehaviour.IllegalBrakingFactor
Behaviour.behaviourNullAgentException
velocity
Constructor and Description |
---|
HideBehaviour(Agent agent,
Agent target,
java.util.List<Agent> obstacles,
float separationFromObstacle) |
HideBehaviour(Agent agent,
Agent target,
java.util.List<Agent> obstacles,
float separationFromObstacle,
com.jme3.scene.Spatial spatial) |
Modifier and Type | Method and Description |
---|---|
protected com.jme3.math.Vector3f |
calculateFullSteering()
If a bheaviour class extend from CompoundSteeringBehaviour instead
of AbstractSteeringBehaviout, It must implement this method instead of
calculateSteering().
|
protected void |
controlRender(com.jme3.renderer.RenderManager rm,
com.jme3.renderer.ViewPort vp) |
void |
setObstacles(java.util.List<Agent> obstacles) |
calculateSteering, setupStrengthControl, setupStrengthControl, setupStrengthControl, setupStrengthControl, turnOffStrengthControl
agentTotalMass, calculateNewVelocity, controlUpdate, getBrakingFactor, getTPF, getVelocity, rotateAgent, setBrakingFactor, setTPF, setVelocity
public HideBehaviour(Agent agent, Agent target, java.util.List<Agent> obstacles, float separationFromObstacle)
obstacles
- Obstacles that this agent will use to hide from the targetseparationFromObstacle
- Distance from the obstacle surface that this agent will maintainHideBehaviour.negativeSeparationFromObstacle
- If separationFromObstacle is lower than 0HideBehaviour.HideWithoutTarget
- If target is nullAbstractSteeringBehaviour.AbstractSteeringBehaviour(com.jme3.ai.agents.Agent)
public void setObstacles(java.util.List<Agent> obstacles)
protected com.jme3.math.Vector3f calculateFullSteering()
AbstractStrengthSteeringBehaviour
calculateFullSteering
in class AbstractStrengthSteeringBehaviour
AbstractStrengthSteeringBehaviour.calculateFullSteering()
protected void controlRender(com.jme3.renderer.RenderManager rm, com.jme3.renderer.ViewPort vp)
controlRender
in class com.jme3.scene.control.AbstractControl