SteeringSystem

public class SteeringSystem extends SteppableTickingSystem

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

java.lang.Object > SteppableTickingSystem > SteeringSystem

Field Summary

npc

final NPCEntity npc

Field npc.

npcTransformComponent

final TransformComponent npcTransformComponent

Field npcTransformComponent.

role

final Role role

Field role.

ref

final Ref ref

Field ref.

position

final Vector3d position

Field position.

yaw

final float yaw

Field yaw.

l

final double l

Field l.

v

final double v

Field v.

vx

final double vx

Field vx.

vz

final double vz

Field vz.

vh

final double vh

Field vh.

Method Detail

SteeringSystem

public public SteeringSystem (@Nonnull final ComponentType npcEntityComponent)

Method SteeringSystem.

Parameters:
@Nonnull final ComponentType npcEntityComponent

SystemDependency

public new SystemDependency (Order.AFTER, AvoidanceSystem.class)

Method SystemDependency.

Parameters:
Order.AFTER Order.AFTER
AvoidanceSystem.class AvoidanceSystem.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