SteeringForcePursue

public class SteeringForcePursue extends SteeringForceWithTarget

Class SteeringForcePursue. Provides steeringforcepursue functionality for the Hytale server.

java.lang.Object > SteeringForceWithTarget > SteeringForcePursue

Field Summary

stopDistance

private double stopDistance

Field stopDistance.

slowdownDistance

private double slowdownDistance

Field slowdownDistance.

falloff

private double falloff

Field falloff.

invFalloff

private double invFalloff

Field invFalloff.

squaredStopDistance

private double squaredStopDistance

Field squaredStopDistance.

squaredSlowdownDistance

private double squaredSlowdownDistance

Field squaredSlowdownDistance.

distanceDelta

private double distanceDelta

Field distanceDelta.

translation

final Vector3d translation

Field translation.

distanceSquared

final double distanceSquared

Field distanceSquared.

distance

final double distance

Field distance.

scale

final double scale

Field scale.

Method Detail

SteeringForcePursue

public public SteeringForcePursue ()

Method SteeringForcePursue.

setDistances

public void setDistances (final double slowdown, final double stop)

Method setDistances.

Parameters:
final double slowdown
final double stop

compute

public boolean compute (@Nonnull final Steering output)

Method compute.

Parameters:
@Nonnull final Steering output

getStopDistance

public double getStopDistance ()

Method getStopDistance.

setStopDistance

public void setStopDistance (final double stopDistance)

Method setStopDistance.

Parameters:
final double stopDistance

getSlowdownDistance

public double getSlowdownDistance ()

Method getSlowdownDistance.

setSlowdownDistance

public void setSlowdownDistance (final double slowdownDistance)

Method setSlowdownDistance.

Parameters:
final double slowdownDistance

getFalloff

public double getFalloff ()

Method getFalloff.

setFalloff

public void setFalloff (final double falloff)

Method setFalloff.

Parameters:
final double falloff