AvoidanceSystem

public class AvoidanceSystem extends SteppableTickingSystem

System for handling avoidance mechanics. Systems contain game logic that operates on entities with specific component types.

java.lang.Object > SteppableTickingSystem > AvoidanceSystem

Field Summary

npcRef

final Ref npcRef

Field npcRef.

npcComponent

final NPCEntity npcComponent

Field npcComponent.

role

final Role role

Field role.

target

final Ref target

Field target.

debugSupport

final DebugSupport debugSupport

Field debugSupport.

debugVisAvoidance

final boolean debugVisAvoidance

Field debugVisAvoidance.

debugVisSeparation

final boolean debugVisSeparation

Field debugVisSeparation.

preBlendSteering

final Vector3d preBlendSteering

Field preBlendSteering.

transformComponent

final TransformComponent transformComponent

Field transformComponent.

position

final Vector3d position

Field position.

world

final World world

Field world.

scaledDir

final Vector3d scaledDir

Field scaledDir.

start

final Vector3d start

Field start.

Method Detail

AvoidanceSystem

public public AvoidanceSystem (@Nonnull final ComponentType componentType)

Method AvoidanceSystem.

Parameters:
@Nonnull final ComponentType componentType

SystemDependency

public new SystemDependency (Order.AFTER, RoleSystems.BehaviourTickSystem.class)

Method SystemDependency.

Parameters:
Order.AFTER Order.AFTER
RoleSystems.BehaviourTickSystem.class RoleSystems.BehaviourTickSystem.class

getDependencies

public Set> getDependencies ()

Method getDependencies.

isParallel

public boolean isParallel (final int archetypeChunkSize, final int taskCount)

Method isParallel.

Parameters:
final int archetypeChunkSize
final int taskCount

getQuery

public Query getQuery ()

Method getQuery.

steppedTick

public void steppedTick (final float dt, final int index, @Nonnull final ArchetypeChunk archetypeChunk, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)

Method steppedTick.

Parameters:
final float dt
final int index
@Nonnull final ArchetypeChunk archetypeChunk
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer

renderDebugSteeringVector

static void renderDebugSteeringVector (@Nonnull final Vector3d position, @Nonnull final Vector3d direction, @Nonnull final Vector3f color, @Nonnull final World world)

Method renderDebugSteeringVector.

Parameters:
@Nonnull final Vector3d position
@Nonnull final Vector3d direction
@Nonnull final Vector3f color
@Nonnull final World world

renderDebugSteeringVectorInverse

static void renderDebugSteeringVectorInverse (@Nonnull final Vector3d position, @Nonnull final Vector3d direction, @Nonnull final Vector3f color, @Nonnull final World world)

Method renderDebugSteeringVectorInverse.

Parameters:
@Nonnull final Vector3d position
@Nonnull final Vector3d direction
@Nonnull final Vector3f color
@Nonnull final World world