public class BalancedCompoundSteeringBehaviour extends CompoundSteeringBehaviour
CompoundSteeringBehaviour
CompoundSteeringBehaviour.steerBehavioursLayerList
AbstractStrengthSteeringBehaviour.negativeScalarMultiplier
AbstractSteeringBehaviour.IllegalBrakingFactor
Behaviour.behaviourNullAgentException
behaviours
velocity
Constructor and Description |
---|
BalancedCompoundSteeringBehaviour(Agent agent) |
BalancedCompoundSteeringBehaviour(Agent agent,
com.jme3.scene.Spatial spatial) |
Modifier and Type | Method and Description |
---|---|
void |
addSteerBehaviour(AbstractSteeringBehaviour behaviour)
Adds a behaviour to the compound behaviour.
|
protected com.jme3.math.Vector3f |
calculatePartialForce(AbstractSteeringBehaviour behaviour)
Calculates the steering force of a single behaviour
|
protected void |
calculateTotalForce() |
protected void |
partialForceCalculated() |
void |
setStrengthIsBalanced(boolean strengthIsBalanced)
Turn on or off the balance.
|
addSteerBehaviour, calculateFullSteering, controlRender, controlUpdate, removeSteerBehaviour
calculateSteering, setupStrengthControl, setupStrengthControl, setupStrengthControl, setupStrengthControl, turnOffStrengthControl
agentTotalMass, calculateNewVelocity, getBrakingFactor, getTPF, getVelocity, rotateAgent, setBrakingFactor, setTPF, setVelocity
public BalancedCompoundSteeringBehaviour(Agent agent)
public BalancedCompoundSteeringBehaviour(Agent agent, com.jme3.scene.Spatial spatial)
public void setStrengthIsBalanced(boolean strengthIsBalanced)
public void addSteerBehaviour(AbstractSteeringBehaviour behaviour)
CompoundSteeringBehaviour
addSteerBehaviour
in class CompoundSteeringBehaviour
behaviour
- Behaviour that you want to addaddSteerBehaviour(com.jme3.ai.agents.behaviours.npc.steering.AbstractSteeringBehaviour)
protected com.jme3.math.Vector3f calculatePartialForce(AbstractSteeringBehaviour behaviour)
CompoundSteeringBehaviour
calculatePartialForce
in class CompoundSteeringBehaviour
behaviour
- The behaviour.CompoundSteeringBehaviour.calculatePartialForce(com.jme3.ai.agents.behaviours.npc.steering.AbstractSteeringBehaviour)
protected void calculateTotalForce()
protected void partialForceCalculated()