public class HideBehaviour extends AbstractStrengthSteeringBehaviour
| Modifier and Type | Class and Description |
|---|---|
static class |
HideBehaviour.HideWithoutTarget |
static class |
HideBehaviour.negativeSeparationFromObstacle |
AbstractStrengthSteeringBehaviour.negativeScalarMultiplierAbstractSteeringBehaviour.IllegalBrakingFactorBehaviour.behaviourNullAgentExceptionvelocity| 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, turnOffStrengthControlagentTotalMass, calculateNewVelocity, controlUpdate, getBrakingFactor, getTPF, getVelocity, rotateAgent, setBrakingFactor, setTPF, setVelocitypublic 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()
AbstractStrengthSteeringBehaviourcalculateFullSteering in class AbstractStrengthSteeringBehaviourAbstractStrengthSteeringBehaviour.calculateFullSteering()protected void controlRender(com.jme3.renderer.RenderManager rm,
com.jme3.renderer.ViewPort vp)
controlRender in class com.jme3.scene.control.AbstractControl