public class StandardPhysicsTickSystem extends EntityTickingSystem
System for handling standardphysicstick mechanics. Systems contain game logic that operates on entities with specific component types.
java.lang.Object > EntityTickingSystem > StandardPhysicsTickSystem
Field Summary
timeResource
Field timeResource.
timeDilationModifier
Field timeDilationModifier.
world
Field world.
physicsComponent
Field physicsComponent.
velocityComponent
Field velocityComponent.
transformComponent
Field transformComponent.
boundingBoxComponent
Field boundingBoxComponent.
physicsConfig
Field physicsConfig.
selfRef
Field selfRef.
forceState
Field forceState.
restingSupport
Field restingSupport.
position
Field position.
velocity
Field velocity.
movement
Field movement.
boundingBox
Field boundingBox.
stateBefore
Field stateBefore.
stateAfter
Field stateAfter.
forceProviderEntity
Field forceProviderEntity.
stateUpdater
Field stateUpdater.
forceProviders
Field forceProviders.
moveOutOfSolidVelocity
Field moveOutOfSolidVelocity.
gravity
Field gravity.
bounceCount
Field bounceCount.
allowRolling
Field allowRolling.
mass
Field mass.
entityCollisionProvider
Field entityCollisionProvider.
blockCollisionProvider
Field blockCollisionProvider.
triggerTracker
Field triggerTracker.
contactPosition
Field contactPosition.
contactNormal
Field contactNormal.
nextMovement
Field nextMovement.
tmpPosition
Field tmpPosition.
density
Field density.
speedBefore
Field speedBefore.
speedAfter
Field speedAfter.
externalForce
Field externalForce.
contact
Field contact.
contactRef
Field contactRef.
hitGround
Field hitGround.
Method Detail
StandardPhysicsTickSystem
public
StandardPhysicsTickSystem
()
Method StandardPhysicsTickSystem.
SystemDependency
new
SystemDependency
(Order.AFTER, TangiableEntitySpatialSystem.class, OrderPriority.CLOSEST)
Method SystemDependency.
- Parameters:
Order.AFTEROrder.AFTERTangiableEntitySpatialSystem.classTangiableEntitySpatialSystem.classOrderPriority.CLOSESTOrderPriority.CLOSEST
getDependencies
Set>
getDependencies
()
Method getDependencies.
tick
void
tick
(float dt, final int index, @Nonnull final ArchetypeChunk archetypeChunk, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method tick.
- Parameters:
floatdtfinal intindex@Nonnull final ArchetypeChunkarchetypeChunk@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
if
else
if
(physicsComponent.isInFluid()
Method if.
- Parameters:
physicsComponent.isInFluid(physicsComponent.isInFluid(