|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

public interface ISteering
An interface for all steerings.
| Method Summary | |
|---|---|
javax.vecmath.Vector3d |
run(javax.vecmath.Vector3d scaledActualVelocity,
RefBoolean wantsToGoFaster,
RefBoolean wantsToStop,
RefLocation focus)
The steering manager calls steering to compute the force of the steering in that tick (logic). |
void |
setProperties(SteeringProperties newProperties)
The steering manager will set to the steering his steering properties. |
| Method Detail |
|---|
javax.vecmath.Vector3d run(javax.vecmath.Vector3d scaledActualVelocity,
RefBoolean wantsToGoFaster,
RefBoolean wantsToStop,
RefLocation focus)
scaledActualVelocity - This is the force of the last velocity, scaled by its weight. The steering can use this vector to create the decelerating force.wantsToGoFaster - The steering should set this ref parameter, whether is possible to enlarge the velocity (wantsToGoFaster=true), or not.wantsToStop - If steering want's to stop the agent, he can set this ref parameter to true.focus - If the wantsToStop is true, steering can set the focus Location, which means the orientation of the stopped agent. (Agent will rotate to this location.)
void setProperties(SteeringProperties newProperties)
newProperties - the new steering properties
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||