public class PlayerVelocityInstructionSystem extends EntityTickingSystem
System for handling playervelocityinstruction mechanics. Systems contain game logic that operates on entities with specific component types.
java.lang.Object > EntityTickingSystem > PlayerVelocityInstructionSystem
Field Summary
playerRefComponent
final
PlayerRef
playerRefComponent
Field playerRefComponent.
velocityComponent
final
Velocity
velocityComponent
Field velocityComponent.
velocity
final
Vector3d
velocity
Field velocity.
velocityConfig
final
VelocityConfig
velocityConfig
Field velocityConfig.
transformComponent
final
TransformComponent
transformComponent
Field transformComponent.
world
final
World
world
Field world.
Method Detail
PlayerVelocityInstructionSystem
public
public
PlayerVelocityInstructionSystem
()
Method PlayerVelocityInstructionSystem.
SystemDependency
public
)
new
SystemDependency
(Order.BEFORE, (ClassMethod SystemDependency.
- Parameters:
Order.BEFOREOrder.BEFORE(Class(Class
SystemTypeDependency
public
new
SystemTypeDependency
(Order.AFTER, (SystemType)
Method SystemTypeDependency.
- Parameters:
Order.AFTEROrder.AFTER(SystemType
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 floatdtfinal intindex@Nonnull final ArchetypeChunkarchetypeChunk@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
ChangeVelocity
public
new
ChangeVelocity
((float)
Method ChangeVelocity.
- Parameters:
(float(float
Vector3d
public
new
Vector3d
(velocity.x, velocity.y, velocity.z)
Method Vector3d.
- Parameters:
velocity.xvelocity.xvelocity.yvelocity.yvelocity.zvelocity.z
getDependencies
public
Set>
getDependencies
()
Method getDependencies.