java.lang.Object
technology.sola.engine.physics.SolaPhysics.Builder
- Enclosing class:
- SolaPhysics
A builder for
SolaPhysics
.-
Constructor Summary
ConstructorsConstructorDescriptionBuilder
(technology.sola.ecs.SolaEcs solaEcs) Creates an instance of the builder. -
Method Summary
Modifier and TypeMethodDescriptionbuildAndInitialize
(EventHub eventHub) Builds and initializes theSolaPhysics
instance.Turns off collision detection systems.Turns off particle systems.
-
Constructor Details
-
Builder
public Builder(technology.sola.ecs.SolaEcs solaEcs) Creates an instance of the builder.- Parameters:
solaEcs
- theSolaEcs
instance to attach systems to
-
-
Method Details
-
withoutParticles
Turns off particle systems.- Returns:
- this
-
withoutCollisionDetection
Turns off collision detection systems.- Returns:
- this
-
buildAndInitialize
Builds and initializes theSolaPhysics
instance.- Parameters:
eventHub
- theEventHub
instance to attach systems to- Returns:
- the
SolaPhysics
instance
-