file: PhysicsUnitConverter.aus

class: PhysicsUnitConverter

[23:7] extends: FxObj

Wraps FXGL's PhysicsUnitConverter (com.almasb.fxgl.physics.PhysicsUnitConverter), the interface that converts between JavaFX pixel units and jbox2d meter units. Box2D's solver works in meters; FXGL keeps gameplay code in pixels and uses a converter to bridge the two whenever a Body or Fixture is constructed. The default converter scales at 50 pixels per meter; the engine exposes the live converter through the PhysicsWorld. Aussom users do not construct one directly; obtain it from physicsWorld.getJBox2DWorld() or use the unit-aware helpers on BoundingShape / Body.

Methods