public class SeekBehavior extends AbstractStrengthSteeringBehavior
timePerFrame, velocity| Constructor and Description |
|---|
SeekBehavior(Agent agent) |
SeekBehavior(Agent agent,
Agent target)
Constructor for seek behaviour.
|
SeekBehavior(Agent agent,
Agent target,
com.jme3.scene.Spatial spatial)
Constructor for seek behavior.
|
SeekBehavior(Agent agent,
com.jme3.math.Vector3f seekingPosition)
Constructor for seek behavior.
|
SeekBehavior(Agent agent,
com.jme3.math.Vector3f seekingPosition,
com.jme3.scene.Spatial spatial)
Constructor for seek behavior.
|
| Modifier and Type | Method and Description |
|---|---|
protected com.jme3.math.Vector3f |
calculateRawSteering()
Calculate steering vector.
|
com.jme3.math.Vector3f |
getSeekingPosition() |
Agent |
getTarget()
Get agent from we seek.
|
void |
setSeekingPosition(com.jme3.math.Vector3f seekingPosition) |
void |
setTarget(Agent target)
Setting agent from we seek.
|
calculateSteering, setupStrengthControl, setupStrengthControl, setupStrengthControl, setupStrengthControl, setupStrengthControl, turnOffStrengthControlagentTotalMass, calculateNewVelocity, controlUpdate, convertToGameEntities, getBrakingFactor, getTimePerFrame, getVelocity, rotateAgent, setBrakingFactor, setTimePerFrame, setVelocitycontrolRenderpublic SeekBehavior(Agent agent)
public SeekBehavior(Agent agent, Agent target)
agent - to whom behavior belongstarget - agent whom we seekpublic SeekBehavior(Agent agent, Agent target, com.jme3.scene.Spatial spatial)
agent - to whom behavior belongsseekingPos - position that we seekspatial - active spatial during excecution of behaviorpublic SeekBehavior(Agent agent, com.jme3.math.Vector3f seekingPosition)
agent - to whom behavior belongsseekingPosition - position that we seekpublic SeekBehavior(Agent agent, com.jme3.math.Vector3f seekingPosition, com.jme3.scene.Spatial spatial)
agent - to whom behavior belongstarget - agent from we seekspatial - 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 getSeekingPosition()
public void setSeekingPosition(com.jme3.math.Vector3f seekingPosition)