Class GroupSteeringAccumulator

java.lang.Object
com.hypixel.hytale.server.npc.movement.GroupSteeringAccumulator

public class GroupSteeringAccumulator extends Object
  • Field Details

    • TRANSFORM_COMPONENT_TYPE

      @Nonnull private static final ComponentType<EntityStore,TransformComponent> TRANSFORM_COMPONENT_TYPE
    • sumOfVelocities

      private final Vector3d sumOfVelocities
    • sumOfDistances

      private final Vector3d sumOfDistances
    • sumOfPositions

      private final Vector3d sumOfPositions
    • temp

      private final Vector3d temp
    • count

      private int count
    • x

      private double x
    • y

      private double y
    • z

      private double z
    • xViewDirection

      private double xViewDirection
    • yViewDirection

      private double yViewDirection
    • zViewDirection

      private double zViewDirection
    • componentSelector

      private Vector3d componentSelector
    • maxRangeSquared

      private double maxRangeSquared
    • maxDistance

      private double maxDistance
    • collisionViewHalfAngleCosine

      private float collisionViewHalfAngleCosine
  • Constructor Details

    • GroupSteeringAccumulator

      public GroupSteeringAccumulator()
  • Method Details

    • begin

      public void begin(double x, double y, double z, double xViewDirection, double yViewDirection, double zViewDirection)
    • begin

      public void begin(@Nonnull Ref<EntityStore> ref, @Nonnull ComponentAccessor<EntityStore> componentAccessor)
    • processEntity

      public void processEntity(@Nonnull Ref<EntityStore> ref, @Nonnull ComponentAccessor<EntityStore> componentAccessor)
    • processEntity

      public void processEntity(@Nonnull Ref<EntityStore> ref, double distanceWeight, double positionWeight, double velocityWeight, @Nonnull ComponentAccessor<EntityStore> componentAccessor)
    • end

      public void end()
    • setComponentSelector

      public void setComponentSelector(Vector3d componentSelector)
    • setMaxRange

      public void setMaxRange(double maxRange)
    • setViewConeHalfAngleCosine

      public void setViewConeHalfAngleCosine(float collisionViewHalfAngleCosine)
    • getSumOfVelocities

      @Nonnull public Vector3d getSumOfVelocities()
    • getSumOfDistances

      @Nonnull public Vector3d getSumOfDistances()
    • getSumOfPositions

      @Nonnull public Vector3d getSumOfPositions()
    • getCount

      public int getCount()