public class MoveBehavior extends AbstractStrengthSteeringBehavior
| Modifier and Type | Field and Description |
|---|---|
protected com.jme3.math.Vector3f |
moveDirection
Move direction of agent.
|
timePerFrame, velocity| Constructor and Description |
|---|
MoveBehavior(Agent agent) |
MoveBehavior(Agent agent,
com.jme3.scene.Spatial spatial) |
| Modifier and Type | Method and Description |
|---|---|
protected com.jme3.math.Vector3f |
calculateRawSteering()
If a behavior class extend from CompoundSteeringBehaviour instead of
AbstractSteeringBehavior, it must implement this method instead of
calculateSteering().
|
com.jme3.math.Vector3f |
getMoveDirection() |
void |
setMoveDirection(com.jme3.math.Vector3f moveDirection) |
calculateSteering, setupStrengthControl, setupStrengthControl, setupStrengthControl, setupStrengthControl, setupStrengthControl, turnOffStrengthControlagentTotalMass, calculateNewVelocity, controlUpdate, convertToGameEntities, getBrakingFactor, getTimePerFrame, getVelocity, rotateAgent, setBrakingFactor, setTimePerFrame, setVelocitycontrolRenderpublic MoveBehavior(Agent agent)
public MoveBehavior(Agent agent, com.jme3.scene.Spatial spatial)
public com.jme3.math.Vector3f getMoveDirection()
public void setMoveDirection(com.jme3.math.Vector3f moveDirection)
protected com.jme3.math.Vector3f calculateRawSteering()
AbstractStrengthSteeringBehaviorcalculateRawSteering in class AbstractStrengthSteeringBehaviorAbstractStrengthSteeringBehavior.calculateRawSteering()