java.lang.Object
technology.sola.engine.defaults.SolaPhysics
SolaPhysics configures several physics systems in a default configuration.
-
Constructor Summary
ConstructorsConstructorDescriptionSolaPhysics
(EventHub eventHub) Creates a SolaPhysics instance using anEventHub
. -
Method Summary
Modifier and TypeMethodDescriptiontechnology.sola.ecs.EcsSystem[]
-
Constructor Details
-
SolaPhysics
Creates a SolaPhysics instance using anEventHub
.- Parameters:
eventHub
- theEventHub
to use
-
-
Method Details
-
getSystems
public technology.sola.ecs.EcsSystem[] getSystems()- Returns:
- an array of all physics related
EcsSystem
s
-
getGravitySystem
- Returns:
- the
GravitySystem
-
getPhysicsSystem
- Returns:
- the
PhysicsSystem
-
getCollisionDetectionSystem
- Returns:
- the
CollisionDetectionSystem
-
getImpulseCollisionResolutionSystem
- Returns:
- the
ImpulseCollisionResolutionSystem
-
getParticleSystem
- Returns:
- the
ParticleSystem
-