public class ContainmentBehavior extends AbstractStrengthSteeringBehavior
timePerFrame, velocity
Constructor and Description |
---|
ContainmentBehavior(Agent agent,
com.jme3.scene.Node containmentArea) |
ContainmentBehavior(Agent agent,
com.jme3.scene.Node containmentArea,
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().
|
protected void |
processExitSurface() |
calculateSteering, setupStrengthControl, setupStrengthControl, setupStrengthControl, setupStrengthControl, setupStrengthControl, turnOffStrengthControl
agentTotalMass, calculateNewVelocity, controlUpdate, convertToGameEntities, getBrakingFactor, getTimePerFrame, getVelocity, rotateAgent, setBrakingFactor, setTimePerFrame, setVelocity
controlRender
public ContainmentBehavior(Agent agent, com.jme3.scene.Node containmentArea)
containmentArea
- Area where the agent will be restrictedSteeringExceptions.InvalidAreaException
- If containmentArea is nullAbstractStrengthSteeringBehavior.AbstractStrengthSteeringBehavior(com.jme3.ai.agents.Agent)
public ContainmentBehavior(Agent agent, com.jme3.scene.Node containmentArea, com.jme3.scene.Spatial spatial)
containmentArea
- Area where the agent will be restrictedAbstractStrengthSteeringBehavior.AbstractStrengthSteeringBehavior(com.jme3.ai.agents.Agent,
com.jme3.scene.Spatial)
protected com.jme3.math.Vector3f calculateRawSteering()
AbstractStrengthSteeringBehavior
calculateRawSteering
in class AbstractStrengthSteeringBehavior
AbstractStrengthSteeringBehavior.calculateRawSteering()
protected void processExitSurface()