public class ArriveBehavior extends SeekBehavior
SeekBehavior
timePerFrame, velocity
Constructor and Description |
---|
ArriveBehavior(Agent agent,
Agent target)
The slowingDistance is (0.1 * distance betwen agents) by default.
|
ArriveBehavior(Agent agent,
Agent target,
float slowingDistance) |
ArriveBehavior(Agent agent,
Agent target,
float slowingDistance,
com.jme3.scene.Spatial spatial) |
ArriveBehavior(Agent agent,
Agent target,
com.jme3.scene.Spatial spatial)
The slowingDistance is (0.1 * distance betwen agents) by default.
|
ArriveBehavior(Agent agent,
com.jme3.math.Vector3f seekingPosition)
The slowingDistance is (0.1 * distance betwen agents) by default.
|
ArriveBehavior(Agent agent,
com.jme3.math.Vector3f seekingPosition,
float slowingDistance) |
ArriveBehavior(Agent agent,
com.jme3.math.Vector3f seekingPosition,
float slowingDistance,
com.jme3.scene.Spatial spatial) |
ArriveBehavior(Agent agent,
com.jme3.math.Vector3f seekingPosition,
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 |
calculateRawSteering()
Calculate steering vector.
|
getSeekingPosition, getTarget, setSeekingPosition, setTarget
calculateSteering, setupStrengthControl, setupStrengthControl, setupStrengthControl, setupStrengthControl, setupStrengthControl, turnOffStrengthControl
agentTotalMass, calculateNewVelocity, controlUpdate, convertToGameEntities, getBrakingFactor, getTimePerFrame, getVelocity, rotateAgent, setBrakingFactor, setTimePerFrame, setVelocity
controlRender
public ArriveBehavior(Agent agent, Agent target)
public ArriveBehavior(Agent agent, Agent target, com.jme3.scene.Spatial spatial)
public ArriveBehavior(Agent agent, com.jme3.math.Vector3f seekingPosition)
public ArriveBehavior(Agent agent, com.jme3.math.Vector3f seekingPosition, com.jme3.scene.Spatial spatial)
public ArriveBehavior(Agent agent, Agent target, float slowingDistance)
slowingDistance
- Distance where the agent will start slowingNegativeSlowingDistanceException
- If slowingDistance is lower than
0ArriveBehavior(com.jme3.ai.agents.Agent,
com.jme3.ai.agents.Agent)
public ArriveBehavior(Agent agent, Agent target, float slowingDistance, com.jme3.scene.Spatial spatial)
ArriveBehavior(com.jme3.ai.agents.Agent,
com.jme3.ai.agents.Agent, float)
,
AbstractSteeringBehaviour#AbstractSteeringBehaviour(com.jme3.ai.agents.Agent,
com.jme3.scene.Spatial)
public ArriveBehavior(Agent agent, com.jme3.math.Vector3f seekingPosition, float slowingDistance)
public ArriveBehavior(Agent agent, com.jme3.math.Vector3f seekingPosition, float slowingDistance, com.jme3.scene.Spatial spatial)
protected com.jme3.math.Vector3f calculateRawSteering()
calculateRawSteering
in class SeekBehavior
AbstractStrengthSteeringBehaviour#calculateRawSteering()
,
SeekBehavior.calculateRawSteering()