PhysicsWorld class final
Convenience wrapper around a Forge2D World.
Constructors
- PhysicsWorld({Vector2? gravity, PhysicsSettings? settings})
Properties
Methods
-
createBody(
BodyDef def) → Body -
Creates a new body from the given
def. -
destroyBody(
Body body) → void -
Removes a
bodyfrom the world. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
step(
double dt) → void -
Step the world by
dtseconds. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited