java.lang.Object
technology.sola.ecs.EcsSystem
technology.sola.engine.physics.system.PhysicsSystem
@NullMarked
public class PhysicsSystem
extends technology.sola.ecs.EcsSystem
PhysicsSystem is an
EcsSystem
that handles updating Entity
with a
TransformComponent
and DynamicBodyComponent
. It will update the velocity based on its applied force
unless it is kinematic. Then it will update the translation based on the velocity scaled to deltaTime.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class technology.sola.ecs.EcsSystem
isActive, setActive
-
Field Details
-
ORDER
public static final int ORDERThe order of this system.- See Also:
-
-
Constructor Details
-
PhysicsSystem
public PhysicsSystem()
-
-
Method Details
-
getOrder
public int getOrder()- Overrides:
getOrder
in classtechnology.sola.ecs.EcsSystem
-
update
public void update(technology.sola.ecs.World world, float deltaTime) - Specified by:
update
in classtechnology.sola.ecs.EcsSystem
-