public class TriangleSteer extends Object implements ISocialSteering
Modifier and Type | Field and Description |
---|---|
protected cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004Bot |
botself |
protected TriangleSteeringProperties |
properties |
Constructor and Description |
---|
TriangleSteer(cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004Bot botself) |
Modifier and Type | Method and Description |
---|---|
javax.vecmath.Vector3d |
run(javax.vecmath.Vector3d scaledActualVelocity,
RefBoolean wantsToGoFaster,
RefBoolean wantsToStop,
cz.cuni.amis.pogamut.base3d.worldview.object.Location focus)
The steering manager calls steering to compute the force of the steering in that tick (logic).
|
SteeringResult |
runSocial(javax.vecmath.Vector3d scaledActualVelocity,
RefBoolean wantsToGoFaster,
RefBoolean wantsToStop,
cz.cuni.amis.pogamut.base3d.worldview.object.Location focus) |
void |
setProperties(SteeringProperties newProperties)
The steering manager will set to the steering his steering properties.
|
protected cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004Bot botself
protected TriangleSteeringProperties properties
public TriangleSteer(cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004Bot botself)
public javax.vecmath.Vector3d run(javax.vecmath.Vector3d scaledActualVelocity, RefBoolean wantsToGoFaster, RefBoolean wantsToStop, cz.cuni.amis.pogamut.base3d.worldview.object.Location focus)
ISteering
run
in interface ISteering
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.)public void setProperties(SteeringProperties newProperties)
ISteering
setProperties
in interface ISteering
newProperties
- the new steering propertiespublic SteeringResult runSocial(javax.vecmath.Vector3d scaledActualVelocity, RefBoolean wantsToGoFaster, RefBoolean wantsToStop, cz.cuni.amis.pogamut.base3d.worldview.object.Location focus)
runSocial
in interface ISocialSteering
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.