Contents
- Description
- Constructor Summary
- Method Summary
- Constructor Details
- Method Details
- setDebug(boolean)
- getAvoidanceMode()
- setAvoidanceMode(Role.AvoidanceMode)
- setSelf(Ref, Vector3d, ComponentAccessor)
- setSelf(Ref, Vector3d, Vector3d, double, ComponentAccessor)
- reset()
- compute(Steering)
- add(Ref, CommandBuffer)
- setVelocityFromEntity(Ref, ComponentAccessor)
- setRadiusFromEntity(Ref, ComponentAccessor)
- setMaxDistance(double)
- setFalloff(double)
- setSelfVelocity(Vector3d)
- getSelfVelocity()
- getSelfRadius()
- setSelfRadius(double)
- getStrength()
- setStrength(double)
- getLastSteeringDirection()
Class SteeringForceAvoidCollision
java.lang.Object
com.hypixel.hytale.server.npc.movement.steeringforces.SteeringForceWithGroup
com.hypixel.hytale.server.npc.movement.steeringforces.SteeringForceAvoidCollision
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(Ref<EntityStore> ref, CommandBuffer<EntityStore> commandBuffer) booleanorg.joml.Vector3ddoubleorg.joml.Vector3ddoublevoidreset()voidsetAvoidanceMode(Role.AvoidanceMode avoidanceMode) voidsetDebug(boolean debug) voidsetFalloff(double falloff) voidsetMaxDistance(double distance) voidsetRadiusFromEntity(Ref<EntityStore> ref, ComponentAccessor<EntityStore> componentAccessor) voidsetSelf(Ref<EntityStore> ref, org.joml.Vector3d position, ComponentAccessor<EntityStore> componentAccessor) voidsetSelf(Ref<EntityStore> ref, org.joml.Vector3d position, org.joml.Vector3d velocity, double radius, ComponentAccessor<EntityStore> componentAccessor) voidsetSelfRadius(double selfRadius) voidsetSelfVelocity(org.joml.Vector3d selfVelocity) voidsetStrength(double strength) voidsetVelocityFromEntity(Ref<EntityStore> ref, ComponentAccessor<EntityStore> componentAccessor) Methods inherited from class SteeringForceWithGroup
setComponentSelector
-
Constructor Details
-
SteeringForceAvoidCollision
public SteeringForceAvoidCollision()
-
-
Method Details
-
setDebug
public void setDebug(boolean debug) -
getAvoidanceMode
-
setAvoidanceMode
-
setSelf
public void setSelf(@Nonnull Ref<EntityStore> ref, @Nonnull org.joml.Vector3d position, @Nonnull ComponentAccessor<EntityStore> componentAccessor) - Overrides:
setSelfin classSteeringForceWithGroup
-
setSelf
public void setSelf(@Nonnull Ref<EntityStore> ref, @Nonnull org.joml.Vector3d position, @Nullable org.joml.Vector3d velocity, double radius, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
reset
public void reset()- Specified by:
resetin classSteeringForceWithGroup
-
compute
- Overrides:
computein classSteeringForceWithGroup
-
add
- Specified by:
addin classSteeringForceWithGroup
-
setVelocityFromEntity
public void setVelocityFromEntity(@Nonnull Ref<EntityStore> ref, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
setRadiusFromEntity
public void setRadiusFromEntity(@Nonnull Ref<EntityStore> ref, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
setMaxDistance
public void setMaxDistance(double distance) -
setFalloff
public void setFalloff(double falloff) -
setSelfVelocity
public void setSelfVelocity(@Nonnull org.joml.Vector3d selfVelocity) -
getSelfVelocity
@Nonnull public org.joml.Vector3d getSelfVelocity() -
getSelfRadius
public double getSelfRadius() -
setSelfRadius
public void setSelfRadius(double selfRadius) -
getStrength
public double getStrength() -
setStrength
public void setStrength(double strength) -
getLastSteeringDirection
@Nonnull public org.joml.Vector3d getLastSteeringDirection()
-