public class BoxExploreBehaviour extends AbstractStrengthSteeringBehaviour
| Modifier and Type | Class and Description |
|---|---|
static class |
BoxExploreBehaviour.BoxExploreWithNegativeBoxDimensions |
static class |
BoxExploreBehaviour.BoxExploreWithNegativeSubdivisionDistance |
AbstractStrengthSteeringBehaviour.negativeScalarMultiplierAbstractSteeringBehaviour.IllegalBrakingFactorBehaviour.behaviourNullAgentExceptionvelocity| Constructor and Description |
|---|
BoxExploreBehaviour(Agent agent,
com.jme3.math.Vector3f boxCenter,
float boxWidthX,
float boxWidthZ,
float boxHeight,
float subdivisionDistance) |
BoxExploreBehaviour(Agent agent,
com.jme3.math.Vector3f boxCenter,
float boxWidthX,
float boxWidthZ,
float boxHeight,
float subdivisionDistance,
com.jme3.scene.Spatial spatial) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addNewTargets() |
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) |
boolean |
getIsFinished() |
protected void |
resetExplore()
The agent will have to explore the region again and all the progress will be lost
|
calculateSteering, setupStrengthControl, setupStrengthControl, setupStrengthControl, setupStrengthControl, turnOffStrengthControlagentTotalMass, calculateNewVelocity, controlUpdate, getBrakingFactor, getTPF, getVelocity, rotateAgent, setBrakingFactor, setTPF, setVelocitypublic BoxExploreBehaviour(Agent agent, com.jme3.math.Vector3f boxCenter, float boxWidthX, float boxWidthZ, float boxHeight, float subdivisionDistance)
boxCenter - Center position of the boxboxWidthX - Box x sizeboxWidthZ - Box z sizeboxHeight - Box y sizesubdivisionDistance - Distance between each subdivision. A lower
subdivision distance means that the agent will
explore the region more exhaustively.BoxExploreBehaviour.BoxExploreWithNegativeSubdivisionDistance - If subdivisionDistance is lower or equals to 0BoxExploreBehaviour.BoxExploreWithNegativeBoxDimensions - If boxWidthX, boxWidthZ or boxHeight is lower than 0AbstractStrengthSteeringBehaviour.AbstractStrengthSteeringBehaviour(com.jme3.ai.agents.Agent)public BoxExploreBehaviour(Agent agent, com.jme3.math.Vector3f boxCenter, float boxWidthX, float boxWidthZ, float boxHeight, float subdivisionDistance, com.jme3.scene.Spatial spatial)
public boolean getIsFinished()
protected void resetExplore()
protected void addNewTargets()
protected com.jme3.math.Vector3f calculateFullSteering()
AbstractStrengthSteeringBehaviourcalculateFullSteering in class AbstractStrengthSteeringBehaviourAbstractSteeringBehaviour.calculateSteering()protected void controlRender(com.jme3.renderer.RenderManager rm,
com.jme3.renderer.ViewPort vp)
controlRender in class com.jme3.scene.control.AbstractControl