RotateObjectSystem

public class RotateObjectSystem extends EntityTickingSystem

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

java.lang.Object > EntityTickingSystem > RotateObjectSystem

Field Summary

transformComponent

final TransformComponent transformComponent

Field transformComponent.

rotateObjectComponent

final RotateObjectComponent rotateObjectComponent

Field rotateObjectComponent.

rotation2

final Vector3f rotation2

Field rotation2.

rotation

final Vector3f rotation

Field rotation.

vector3f

final Vector3f vector3f

Field vector3f.

Method Detail

RotateObjectSystem

public public RotateObjectSystem (@Nonnull final ComponentType transformComponentType, @Nonnull final ComponentType rotateObjectComponentType)

Method RotateObjectSystem.

Parameters:
@Nonnull final ComponentType transformComponentType
@Nonnull final ComponentType rotateObjectComponentType

getQuery

public Query getQuery ()

Method getQuery.

tick

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

Method tick.

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