public class MoveBehaviour extends AbstractStrengthSteeringBehaviour
AbstractStrengthSteeringBehaviour.negativeScalarMultiplier
AbstractSteeringBehaviour.IllegalBrakingFactor
Behaviour.behaviourNullAgentException
Modifier and Type | Field and Description |
---|---|
protected com.jme3.math.Vector3f |
moveDirection
Move direction of agent.
|
velocity
Constructor and Description |
---|
MoveBehaviour(Agent agent) |
MoveBehaviour(Agent agent,
com.jme3.scene.Spatial spatial) |
Modifier and Type | Method and Description |
---|---|
protected com.jme3.math.Vector3f |
calculateFullSteering()
If a bheaviour class extend from CompoundSteeringBehaviour instead
of AbstractSteeringBehaviout, It must implement this method instead of
calculateSteering().
|
protected void |
controlRender(com.jme3.renderer.RenderManager rm,
com.jme3.renderer.ViewPort vp) |
com.jme3.math.Vector3f |
getMoveDirection() |
void |
setMoveDirection(com.jme3.math.Vector3f moveDirection) |
calculateSteering, setupStrengthControl, setupStrengthControl, setupStrengthControl, setupStrengthControl, turnOffStrengthControl
agentTotalMass, calculateNewVelocity, controlUpdate, getBrakingFactor, getTPF, getVelocity, rotateAgent, setBrakingFactor, setTPF, setVelocity
public MoveBehaviour(Agent agent)
public MoveBehaviour(Agent agent, com.jme3.scene.Spatial spatial)
protected void controlRender(com.jme3.renderer.RenderManager rm, com.jme3.renderer.ViewPort vp)
controlRender
in class com.jme3.scene.control.AbstractControl
public com.jme3.math.Vector3f getMoveDirection()
public void setMoveDirection(com.jme3.math.Vector3f moveDirection)
protected com.jme3.math.Vector3f calculateFullSteering()
AbstractStrengthSteeringBehaviour
calculateFullSteering
in class AbstractStrengthSteeringBehaviour
AbstractStrengthSteeringBehaviour.calculateFullSteering()