public class SteeringForceAvoidCollision extends SteeringForceWithGroup
Class SteeringForceAvoidCollision. Provides steeringforceavoidcollision functionality for the Hytale server.
java.lang.Object > SteeringForceWithGroup > SteeringForceAvoidCollision
Field Summary
selfRadius
Field selfRadius.
collisionTime
Field collisionTime.
maxDistance
Field maxDistance.
falloff
Field falloff.
strength
Field strength.
avoidanceMode
Field avoidanceMode.
selfReference
Field selfReference.
otherReference
Field otherReference.
velocity
Field velocity.
maxTime
Field maxTime.
canSlowDown
Field canSlowDown.
overlap
Field overlap.
debug
Field debug.
velocitySquared
Field velocitySquared.
l
Field l.
distance
Field distance.
s
Field s.
transformComponent
Field transformComponent.
position
Field position.
uuidComponent
Field uuidComponent.
uuid
Field uuid.
departing
Field departing.
entityRadius
Field entityRadius.
sumRadius
Field sumRadius.
velocityComponent
Field velocityComponent.
solutions
Field solutions.
tempVelocity
Field tempVelocity.
dot
Field dot.
antiParallel
Field antiParallel.
Method Detail
SteeringForceAvoidCollision
public
SteeringForceAvoidCollision
()
Method SteeringForceAvoidCollision.
setDebug
void
setDebug
(final boolean debug)
Method setDebug.
- Parameters:
final booleandebug
getAvoidanceMode
Role.AvoidanceMode
getAvoidanceMode
()
Method getAvoidanceMode.
setAvoidanceMode
void
setAvoidanceMode
(final Role.AvoidanceMode avoidanceMode)
Method setAvoidanceMode.
- Parameters:
final Role.AvoidanceModeavoidanceMode
setSelf
void
setSelf
(@Nonnull final Ref ref, @Nonnull final Vector3d position, @Nonnull final ComponentAccessor componentAccessor)
Method setSelf.
- Parameters:
@Nonnull final Refref@Nonnull final Vector3dposition@Nonnull final ComponentAccessorcomponentAccessor
reset
void
reset
()
Method reset.
setVelocityFromEntity
void
setVelocityFromEntity
(@Nonnull final Ref ref, @Nonnull final ComponentAccessor componentAccessor)
Method setVelocityFromEntity.
- Parameters:
@Nonnull final Refref@Nonnull final ComponentAccessorcomponentAccessor
setRadiusFromEntity
void
setRadiusFromEntity
(@Nonnull final Ref ref, @Nonnull final ComponentAccessor componentAccessor)
Method setRadiusFromEntity.
- Parameters:
@Nonnull final Refref@Nonnull final ComponentAccessorcomponentAccessor
setMaxDistance
void
setMaxDistance
(final double distance)
Method setMaxDistance.
- Parameters:
final doubledistance
setFalloff
void
setFalloff
(final double falloff)
Method setFalloff.
- Parameters:
final doublefalloff
getSelfRadius
double
getSelfRadius
()
Method getSelfRadius.
setSelfRadius
void
setSelfRadius
(final double selfRadius)
Method setSelfRadius.
- Parameters:
final doubleselfRadius
getStrength
double
getStrength
()
Method getStrength.
setStrength
void
setStrength
(final double strength)
Method setStrength.
- Parameters:
final doublestrength
getLastSteeringDirection
Method getLastSteeringDirection.