public class BalancedCompoundSteeringBehavior extends CompoundSteeringBehavior
CompoundSteeringBehaviorCompoundSteeringBehavior.steerBehaviorsLayerListbehaviorstimePerFrame, velocity| Constructor and Description |
|---|
BalancedCompoundSteeringBehavior(Agent agent) |
BalancedCompoundSteeringBehavior(Agent agent,
com.jme3.scene.Spatial spatial) |
| Modifier and Type | Method and Description |
|---|---|
void |
addSteerBehavior(AbstractSteeringBehavior behavior)
Adds a behavior to the compound behavior.
|
protected com.jme3.math.Vector3f |
calculatePartialForce(AbstractSteeringBehavior behavior)
Calculates the steering force of a single behavior
|
protected void |
calculateTotalForce()
Calculates the total force if it is not calculated.
|
protected void |
partialForceCalculated()
Reset the forces if we have finished with all the forces.
|
void |
setStrengthIsBalanced(boolean strengthIsBalanced)
Turn on or off the balance.
|
addSteerBehavior, calculateRawSteering, controlUpdate, removeSteerBehaviorcalculateSteering, setupStrengthControl, setupStrengthControl, setupStrengthControl, setupStrengthControl, setupStrengthControl, turnOffStrengthControlagentTotalMass, calculateNewVelocity, convertToGameEntities, getBrakingFactor, getTimePerFrame, getVelocity, rotateAgent, setBrakingFactor, setTimePerFrame, setVelocitycontrolRenderpublic BalancedCompoundSteeringBehavior(Agent agent)
public BalancedCompoundSteeringBehavior(Agent agent, com.jme3.scene.Spatial spatial)
public void addSteerBehavior(AbstractSteeringBehavior behavior)
CompoundSteeringBehavioraddSteerBehavior in class CompoundSteeringBehaviorbehavior - Behavior that you want to addaddSteerBehavior(com.jme3.ai.agents.behaviors.npc.steering.AbstractSteeringBehavior)public void setStrengthIsBalanced(boolean strengthIsBalanced)
protected com.jme3.math.Vector3f calculatePartialForce(AbstractSteeringBehavior behavior)
CompoundSteeringBehaviorcalculatePartialForce in class CompoundSteeringBehaviorbehavior - The behavior.CompoundSteeringBehavior.calculatePartialForce(com.jme3.ai.agents.behaviors.npc.steering.AbstractSteeringBehavior)protected void calculateTotalForce()
protected void partialForceCalculated()