public class FleeBehavior extends AbstractStrengthSteeringBehavior
timePerFrame, velocity| Constructor and Description |
|---|
FleeBehavior(Agent agent,
Agent target)
Constructor for flee behavior.
|
FleeBehavior(Agent agent,
Agent target,
com.jme3.scene.Spatial spatial)
Constructor for flee behavior.
|
FleeBehavior(Agent agent,
com.jme3.math.Vector3f fleePosition)
Constructor for flee behavior.
|
FleeBehavior(Agent agent,
com.jme3.math.Vector3f fleePosition,
com.jme3.scene.Spatial spatial)
Constructor for flee behavior.
|
| Modifier and Type | Method and Description |
|---|---|
protected com.jme3.math.Vector3f |
calculateRawSteering()
Calculate steering vector.
|
com.jme3.math.Vector3f |
getFleePosition() |
Agent |
getTarget()
Get agent from whom we flee.
|
void |
setFleePosition(com.jme3.math.Vector3f fleePosition) |
void |
setTarget(Agent target)
Setting agent from whom we flee.
|
calculateSteering, setupStrengthControl, setupStrengthControl, setupStrengthControl, setupStrengthControl, setupStrengthControl, turnOffStrengthControlagentTotalMass, calculateNewVelocity, controlUpdate, convertToGameEntities, getBrakingFactor, getTimePerFrame, getVelocity, rotateAgent, setBrakingFactor, setTimePerFrame, setVelocitycontrolRenderpublic FleeBehavior(Agent agent, Agent target)
agent - to whom behavior belongstarget - agent from whom we fleepublic FleeBehavior(Agent agent, Agent target, com.jme3.scene.Spatial spatial)
agent - to whom behavior belongstarget - agent from whom we fleespatial - active spatial during excecution of behaviorpublic FleeBehavior(Agent agent, com.jme3.math.Vector3f fleePosition)
agent - to whom behavior belongsfleePosition - position from that we fleepublic FleeBehavior(Agent agent, com.jme3.math.Vector3f fleePosition, com.jme3.scene.Spatial spatial)
agent - to whom behavior belongsfleePosition - position from that we fleespatial - active spatial during excecution of behaviorprotected com.jme3.math.Vector3f calculateRawSteering()
calculateRawSteering in class AbstractStrengthSteeringBehaviorAbstractStrengthSteeringBehavior.calculateRawSteering()public Agent getTarget()
public void setTarget(Agent target)
target - public com.jme3.math.Vector3f getFleePosition()
public void setFleePosition(com.jme3.math.Vector3f fleePosition)