public class ArriveBehaviour extends SeekBehaviour
SeekBehaviour
Modifier and Type | Class and Description |
---|---|
static class |
ArriveBehaviour.negativeSlowingDistance |
AbstractStrengthSteeringBehaviour.negativeScalarMultiplier
AbstractSteeringBehaviour.IllegalBrakingFactor
Behaviour.behaviourNullAgentException
velocity
Constructor and Description |
---|
ArriveBehaviour(Agent agent,
Agent target)
The slowingDistance is (0.1 * distance betwen agents) by default.
|
ArriveBehaviour(Agent agent,
Agent target,
float slowingDistance) |
ArriveBehaviour(Agent agent,
Agent target,
float slowingDistance,
com.jme3.scene.Spatial spatial) |
ArriveBehaviour(Agent agent,
Agent target,
com.jme3.scene.Spatial spatial)
The slowingDistance is (0.1 * distance betwen agents) by default.
|
ArriveBehaviour(Agent agent,
com.jme3.math.Vector3f seekingPos)
The slowingDistance is (0.1 * distance betwen agents) by default.
|
ArriveBehaviour(Agent agent,
com.jme3.math.Vector3f seekingPos,
float slowingDistance) |
ArriveBehaviour(Agent agent,
com.jme3.math.Vector3f seekingPos,
float slowingDistance,
com.jme3.scene.Spatial spatial) |
ArriveBehaviour(Agent agent,
com.jme3.math.Vector3f seekingPos,
com.jme3.scene.Spatial spatial)
The slowingDistance is (0.1 * distance betwen agents) by default.
|
Modifier and Type | Method and Description |
---|---|
protected com.jme3.math.Vector3f |
calculateFullSteering()
Calculate steering vector.
|
controlRender, getSeekingPos, getTarget, setSeekingPos, setTarget
calculateSteering, setupStrengthControl, setupStrengthControl, setupStrengthControl, setupStrengthControl, turnOffStrengthControl
agentTotalMass, calculateNewVelocity, controlUpdate, getBrakingFactor, getTPF, getVelocity, rotateAgent, setBrakingFactor, setTPF, setVelocity
public ArriveBehaviour(Agent agent, Agent target)
public ArriveBehaviour(Agent agent, Agent target, com.jme3.scene.Spatial spatial)
public ArriveBehaviour(Agent agent, com.jme3.math.Vector3f seekingPos)
public ArriveBehaviour(Agent agent, com.jme3.math.Vector3f seekingPos, com.jme3.scene.Spatial spatial)
public ArriveBehaviour(Agent agent, Agent target, float slowingDistance)
slowingDistance
- Distance where the agent will start slowingArriveBehaviour.negativeSlowingDistance
- If slowingDistance is lower than 0ArriveBehaviour(com.jme3.ai.agents.Agent, com.jme3.ai.agents.Agent)
public ArriveBehaviour(Agent agent, Agent target, float slowingDistance, com.jme3.scene.Spatial spatial)
public ArriveBehaviour(Agent agent, com.jme3.math.Vector3f seekingPos, float slowingDistance)
public ArriveBehaviour(Agent agent, com.jme3.math.Vector3f seekingPos, float slowingDistance, com.jme3.scene.Spatial spatial)
protected com.jme3.math.Vector3f calculateFullSteering()
calculateFullSteering
in class SeekBehaviour
AbstractStrengthSteeringBehaviour.calculateFullSteering()
,
SeekBehaviour.calculateFullSteering()