public class ContainmentBehaviour extends AbstractStrengthSteeringBehaviour
| Modifier and Type | Class and Description |
|---|---|
static class |
ContainmentBehaviour.ContainmentWithInvalidContainmenetArea |
static class |
ContainmentBehaviour.ContainmentWithoutContainmentArea |
AbstractStrengthSteeringBehaviour.negativeScalarMultiplierAbstractSteeringBehaviour.IllegalBrakingFactorBehaviour.behaviourNullAgentExceptionvelocity| Constructor and Description |
|---|
ContainmentBehaviour(Agent agent,
com.jme3.scene.Node containmentArea) |
ContainmentBehaviour(Agent agent,
com.jme3.scene.Node containmentArea,
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) |
protected void |
processExitSurface() |
calculateSteering, setupStrengthControl, setupStrengthControl, setupStrengthControl, setupStrengthControl, turnOffStrengthControlagentTotalMass, calculateNewVelocity, controlUpdate, getBrakingFactor, getTPF, getVelocity, rotateAgent, setBrakingFactor, setTPF, setVelocitypublic ContainmentBehaviour(Agent agent, com.jme3.scene.Node containmentArea)
containmentArea - Area where the agent will be restrictedContainmentBehaviour.ContainmentWithoutContainmentArea - If containmentArea is nullAbstractStrengthSteeringBehaviour.AbstractStrengthSteeringBehaviour(com.jme3.ai.agents.Agent)public ContainmentBehaviour(Agent agent, com.jme3.scene.Node containmentArea, com.jme3.scene.Spatial spatial)
containmentArea - Area where the agent will be restrictedAbstractStrengthSteeringBehaviour.AbstractStrengthSteeringBehaviour(com.jme3.ai.agents.Agent, com.jme3.scene.Spatial)protected void controlRender(com.jme3.renderer.RenderManager rm,
com.jme3.renderer.ViewPort vp)
controlRender in class com.jme3.scene.control.AbstractControlprotected com.jme3.math.Vector3f calculateFullSteering()
AbstractStrengthSteeringBehaviourcalculateFullSteering in class AbstractStrengthSteeringBehaviourAbstractStrengthSteeringBehaviour.calculateFullSteering()protected void processExitSurface()