Class BodyMotionMaintainDistance

All Implemented Interfaces:
BodyMotion, Motion, RoleStateChange, IAnnotatedComponent

public class BodyMotionMaintainDistance extends BodyMotionBase
  • Field Details

    • TRANSFORM_COMPONENT_TYPE

      protected static final ComponentType<EntityStore,TransformComponent> TRANSFORM_COMPONENT_TYPE
    • POSITIONING_ANGLE_THRESHOLD

      protected static final float POSITIONING_ANGLE_THRESHOLD
      See Also:
    • initialDesiredDistanceRange

      protected final double[] initialDesiredDistanceRange
    • moveThreshold

      protected final double moveThreshold
    • thresholdDistanceRangeSquared

      @Nonnull protected final double[] thresholdDistanceRangeSquared
    • targetDistanceFactor

      protected final double targetDistanceFactor
    • relativeForwardsSpeed

      protected final double relativeForwardsSpeed
    • relativeBackwardsSpeed

      protected final double relativeBackwardsSpeed
    • moveTowardsSlowdownThreshold

      protected final double moveTowardsSlowdownThreshold
    • strafingDurationRange

      protected final double[] strafingDurationRange
    • strafingFrequencyRange

      protected final double[] strafingFrequencyRange
    • minRangeProviderSlot

      protected final int minRangeProviderSlot
    • maxRangeProviderSlot

      protected final int maxRangeProviderSlot
    • positioningAngleProviderSlot

      protected final int positioningAngleProviderSlot
    • desiredDistanceRange

      protected final double[] desiredDistanceRange
    • targetDistanceSquared

      protected double targetDistanceSquared
    • approaching

      protected boolean approaching
    • movingAway

      protected boolean movingAway
    • strafingDirection

      protected int strafingDirection
    • strafingDelay

      protected double strafingDelay
    • pauseStrafing

      protected boolean pauseStrafing
    • flee

      protected final SteeringForceEvade flee
    • seek

      protected final SteeringForcePursue seek
    • targetPosition

      protected final Vector3d targetPosition
    • toTarget

      protected final Vector3d toTarget
    • cachedMinRangeProvider

      protected DoubleParameterProvider cachedMinRangeProvider
    • cachedMaxRangeProvider

      protected DoubleParameterProvider cachedMaxRangeProvider
    • cachedPositioningAngleProvider

      protected DoubleParameterProvider cachedPositioningAngleProvider
    • initialised

      protected boolean initialised
  • Constructor Details

  • Method Details