SteeringForceAvoidCollision

public class SteeringForceAvoidCollision extends SteeringForceWithGroup

Class SteeringForceAvoidCollision. Provides steeringforceavoidcollision functionality for the Hytale server.

java.lang.Object > SteeringForceWithGroup > SteeringForceAvoidCollision

Field Summary

selfRadius

private double selfRadius

Field selfRadius.

collisionTime

private double collisionTime

Field collisionTime.

maxDistance

private double maxDistance

Field maxDistance.

falloff

private double falloff

Field falloff.

strength

private double strength

Field strength.

avoidanceMode

private Role.AvoidanceMode avoidanceMode

Field avoidanceMode.

selfReference

private Ref selfReference

Field selfReference.

otherReference

private Ref otherReference

Field otherReference.

velocity

private double velocity

Field velocity.

maxTime

private double maxTime

Field maxTime.

canSlowDown

private boolean canSlowDown

Field canSlowDown.

overlap

private boolean overlap

Field overlap.

debug

private boolean debug

Field debug.

velocitySquared

final double velocitySquared

Field velocitySquared.

l

final double l

Field l.

distance

final double distance

Field distance.

s

final double s

Field s.

transformComponent

final TransformComponent transformComponent

Field transformComponent.

position

final Vector3d position

Field position.

uuidComponent

final UUIDComponent uuidComponent

Field uuidComponent.

uuid

final UUID uuid

Field uuid.

departing

final boolean departing

Field departing.

entityRadius

final double entityRadius

Field entityRadius.

sumRadius

final double sumRadius

Field sumRadius.

velocityComponent

final Velocity velocityComponent

Field velocityComponent.

solutions

final int solutions

Field solutions.

tempVelocity

final double tempVelocity

Field tempVelocity.

dot

final double dot

Field dot.

antiParallel

final boolean antiParallel

Field antiParallel.

Method Detail

SteeringForceAvoidCollision

public public SteeringForceAvoidCollision ()

Method SteeringForceAvoidCollision.

setDebug

public void setDebug (final boolean debug)

Method setDebug.

Parameters:
final boolean debug

getAvoidanceMode

public Role.AvoidanceMode getAvoidanceMode ()

Method getAvoidanceMode.

setAvoidanceMode

public void setAvoidanceMode (final Role.AvoidanceMode avoidanceMode)

Method setAvoidanceMode.

Parameters:
final Role.AvoidanceMode avoidanceMode

setSelf

public void setSelf (@Nonnull final Ref ref, @Nonnull final Vector3d position, @Nonnull final ComponentAccessor componentAccessor)

Method setSelf.

Parameters:
@Nonnull final Ref ref
@Nonnull final Vector3d position
@Nonnull final ComponentAccessor componentAccessor

reset

public void reset ()

Method reset.

compute

public boolean compute (@Nonnull final Steering output)

Method compute.

Parameters:
@Nonnull final Steering output

add

public void add (@Nonnull final Ref ref, @Nonnull final CommandBuffer commandBuffer)

Method add.

Parameters:
@Nonnull final Ref ref
@Nonnull final CommandBuffer commandBuffer

setVelocityFromEntity

public void setVelocityFromEntity (@Nonnull final Ref ref, @Nonnull final ComponentAccessor componentAccessor)

Method setVelocityFromEntity.

Parameters:
@Nonnull final Ref ref
@Nonnull final ComponentAccessor componentAccessor

setRadiusFromEntity

public void setRadiusFromEntity (@Nonnull final Ref ref, @Nonnull final ComponentAccessor componentAccessor)

Method setRadiusFromEntity.

Parameters:
@Nonnull final Ref ref
@Nonnull final ComponentAccessor componentAccessor

setMaxDistance

public void setMaxDistance (final double distance)

Method setMaxDistance.

Parameters:
final double distance

setFalloff

public void setFalloff (final double falloff)

Method setFalloff.

Parameters:
final double falloff

setSelfVelocity

public void setSelfVelocity (@Nonnull final Vector3d selfVelocity)

Method setSelfVelocity.

Parameters:
@Nonnull final Vector3d selfVelocity

getSelfVelocity

public Vector3d getSelfVelocity ()

Method getSelfVelocity.

getSelfRadius

public double getSelfRadius ()

Method getSelfRadius.

setSelfRadius

public void setSelfRadius (final double selfRadius)

Method setSelfRadius.

Parameters:
final double selfRadius

getStrength

public double getStrength ()

Method getStrength.

setStrength

public void setStrength (final double strength)

Method setStrength.

Parameters:
final double strength

getLastSteeringDirection

public Vector3d getLastSteeringDirection ()

Method getLastSteeringDirection.