public class WallApproachBehaviour extends AbstractStrengthSteeringBehaviour
Modifier and Type | Class and Description |
---|---|
static class |
WallApproachBehaviour.WallApproachNegativeOffset |
static class |
WallApproachBehaviour.WallApproachWithoutWall |
AbstractStrengthSteeringBehaviour.negativeScalarMultiplier
AbstractSteeringBehaviour.IllegalBrakingFactor
Behaviour.behaviourNullAgentException
velocity
Constructor and Description |
---|
WallApproachBehaviour(Agent agent,
com.jme3.scene.Node wall,
float offsetToMaintain) |
WallApproachBehaviour(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 |
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 |
setOffsetToMaintain(float offsetToMaintain) |
calculateSteering, setupStrengthControl, setupStrengthControl, setupStrengthControl, setupStrengthControl, turnOffStrengthControl
agentTotalMass, calculateNewVelocity, controlUpdate, getBrakingFactor, getTPF, getVelocity, rotateAgent, setBrakingFactor, setTPF, setVelocity
public WallApproachBehaviour(Agent agent, com.jme3.scene.Node wall, float offsetToMaintain)
wall
- Surface or path where the agent will maintain a certain offsetWallApproachBehaviour.WallApproachWithoutWall
- If the wall is a null pointerWallApproachBehaviour.WallApproachNegativeOffset
- If offsetToMaintain is negativeAbstractStrengthSteeringBehaviour.AbstractStrengthSteeringBehaviour(com.jme3.ai.agents.Agent)
public WallApproachBehaviour(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)
,
AbstractStrengthSteeringBehaviour.AbstractStrengthSteeringBehaviour(com.jme3.ai.agents.Agent, com.jme3.scene.Spatial)
public void setOffsetToMaintain(float offsetToMaintain)
WallApproachBehaviour.WallApproachNegativeOffset
- If offsetToMaintain is negativeprotected void controlRender(com.jme3.renderer.RenderManager rm, com.jme3.renderer.ViewPort vp)
controlRender
in class com.jme3.scene.control.AbstractControl
protected com.jme3.math.Vector3f calculateFullSteering()
AbstractStrengthSteeringBehaviour
calculateFullSteering
in class AbstractStrengthSteeringBehaviour
AbstractStrengthSteeringBehaviour.calculateFullSteering()