public class WallApproachBehavior extends AbstractStrengthSteeringBehavior
timePerFrame, velocity| Constructor and Description |
|---|
WallApproachBehavior(Agent agent,
com.jme3.scene.Node wall,
float offsetToMaintain) |
WallApproachBehavior(Agent agent,
com.jme3.scene.Node wall,
float offsetToMaintain,
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 |
setOffsetToMaintain(float offsetToMaintain) |
calculateSteering, setupStrengthControl, setupStrengthControl, setupStrengthControl, setupStrengthControl, setupStrengthControl, turnOffStrengthControlagentTotalMass, calculateNewVelocity, controlUpdate, convertToGameEntities, getBrakingFactor, getTimePerFrame, getVelocity, rotateAgent, setBrakingFactor, setTimePerFrame, setVelocitycontrolRenderpublic WallApproachBehavior(Agent agent, com.jme3.scene.Node wall, float offsetToMaintain)
wall - Surface or path where the agent will maintain a certain
offsetSteeringExceptions.WallApproachWithoutWallException - If the wall is a null pointerSteeringExceptions.NegativeValueException - If offsetToMaintain is
negativeAbstractStrengthSteeringBehavior.AbstractStrengthSteeringBehavior(com.jme3.ai.agents.Agent)public WallApproachBehavior(Agent agent, com.jme3.scene.Node wall, float offsetToMaintain, com.jme3.scene.Spatial spatial)
WallApproach#WallApproach(com.jme3.ai.agents.Agent,
com.jme3.scene.Node, float),
AbstractStrengthSteeringBehavior.AbstractStrengthSteeringBehavior(com.jme3.ai.agents.Agent,
com.jme3.scene.Spatial)public void setOffsetToMaintain(float offsetToMaintain)
SteeringExceptions.NegativeValueException - If offsetToMaintain is
negativeprotected com.jme3.math.Vector3f calculateRawSteering()
AbstractStrengthSteeringBehaviorcalculateRawSteering in class AbstractStrengthSteeringBehaviorAbstractStrengthSteeringBehavior.calculateRawSteering()