public class QueuingBehaviour extends AbstractStrengthSteeringBehaviour
Modifier and Type | Class and Description |
---|---|
static class |
QueuingBehaviour.QueuingWithNegativeMinDistance |
AbstractStrengthSteeringBehaviour.negativeScalarMultiplier
AbstractSteeringBehaviour.IllegalBrakingFactor
Behaviour.behaviourNullAgentException
velocity
Constructor and Description |
---|
QueuingBehaviour(Agent agent,
java.util.List<Agent> neighbours,
float minDistance) |
QueuingBehaviour(Agent agent,
java.util.List<Agent> neighbours,
float minDistance,
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 |
setNeighbours(java.util.List<Agent> neighbours) |
calculateSteering, setupStrengthControl, setupStrengthControl, setupStrengthControl, setupStrengthControl, turnOffStrengthControl
agentTotalMass, calculateNewVelocity, controlUpdate, getBrakingFactor, getTPF, getVelocity, rotateAgent, setBrakingFactor, setTPF, setVelocity
public QueuingBehaviour(Agent agent, java.util.List<Agent> neighbours, float minDistance)
neighbours
- Queue of agentsminDistance
- Min. distance from center to center to consider a neighbour as an obstacleQueuingBehaviour.QueuingWithNegativeMinDistance
- If minDistance is lower than 0AbstractStrengthSteeringBehaviour.AbstractStrengthSteeringBehaviour(com.jme3.ai.agents.Agent)
public void setNeighbours(java.util.List<Agent> neighbours)
protected 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()