public class BoxExploreBehavior extends AbstractStrengthSteeringBehavior
timePerFrame, velocity| Constructor and Description |
|---|
BoxExploreBehavior(Agent agent,
com.jme3.math.Vector3f boxCenter,
float boxWidthX,
float boxWidthZ,
float boxHeight,
float subdivisionDistance) |
BoxExploreBehavior(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()
Should be used after cleaning target list
|
protected com.jme3.math.Vector3f |
calculateRawSteering()
If a behavior class extend from CompoundSteeringBehaviour instead of
AbstractSteeringBehavior, it must implement this method instead of
calculateSteering().
|
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, setupStrengthControl, turnOffStrengthControlagentTotalMass, calculateNewVelocity, controlUpdate, convertToGameEntities, getBrakingFactor, getTimePerFrame, getVelocity, rotateAgent, setBrakingFactor, setTimePerFrame, setVelocitycontrolRenderpublic BoxExploreBehavior(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.SteeringExceptions.NegativeValueException - If subdivisionDistance
is lower or equals to 0 or if boxWidthX, boxWidthZ or boxHeight is lower
than 0AbstractStrengthSteeringBehavior.AbstractStrengthSteeringBehavior(com.jme3.ai.agents.Agent)public BoxExploreBehavior(Agent agent, com.jme3.math.Vector3f boxCenter, float boxWidthX, float boxWidthZ, float boxHeight, float subdivisionDistance, com.jme3.scene.Spatial spatial)
protected void addNewTargets()
protected com.jme3.math.Vector3f calculateRawSteering()
AbstractStrengthSteeringBehaviorcalculateRawSteering in class AbstractStrengthSteeringBehaviorAbstractSteeringBehavior.calculateSteering()public boolean getIsFinished()
protected void resetExplore()