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
SystemDependency
public
new
SystemDependency
(Order.AFTER, RoleSystems.BehaviourTickSystem.class)
Method SystemDependency.
- Parameters:
Order.AFTEROrder.AFTERRoleSystems.BehaviourTickSystem.classRoleSystems.BehaviourTickSystem.class
getDependencies
public
Set>
getDependencies
()
Method getDependencies.
isParallel
public
boolean
isParallel
(final int archetypeChunkSize, final int taskCount)
Method isParallel.
- Parameters:
final intarchetypeChunkSizefinal inttaskCount
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 floatdtfinal intindex@Nonnull final ArchetypeChunkarchetypeChunk@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
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 Vector3dposition@Nonnull final Vector3ddirection@Nonnull final Vector3fcolor@Nonnull final Worldworld
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 Vector3dposition@Nonnull final Vector3ddirection@Nonnull final Vector3fcolor@Nonnull final Worldworld