PlayerSpatialSystem

public class PlayerSpatialSystem extends SpatialSystem

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

java.lang.Object > SpatialSystem > PlayerSpatialSystem

Field Summary

transformComponent

final TransformComponent transformComponent

Field transformComponent.

Method Detail

PlayerSpatialSystem

public public PlayerSpatialSystem (@Nonnull final ResourceType, EntityStore>> spatialResource)

Method PlayerSpatialSystem.

Parameters:
@Nonnull final ResourceType, EntityStore>> spatialResource

getQuery

public Query getQuery ()

Method getQuery.

tick

public void tick (final float dt, final int systemIndex, @Nonnull final Store store)

Method tick.

Parameters:
final float dt
final int systemIndex
@Nonnull final Store store

getPosition

public Vector3d getPosition (@Nonnull final ArchetypeChunk archetypeChunk, final int index)

Method getPosition.

Parameters:
@Nonnull final ArchetypeChunk archetypeChunk
final int index