Physics3DWorldSettings class final
How a world is made.
Constructors
Properties
- gravity → Vector3
-
Gravity, m/s².
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
layerMasks
→ List<
int> -
The collision grid, one row per layer: bit
boflayerMasks[a]is set when layeracollides with layerb. A pair collides only when both rows say so. A live world's grid can change: Physics3DWorld.setLayerMasks.final - maxBodies → int
-
The most bodies it can hold.
final
- reportActivation → bool
-
Whether bodies report falling asleep and waking up.
final
- reportContactStay → bool
-
Whether touching pairs report a stay event after every step.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
normalizeLayerMasks(
List< int> ? masks) → List<int> -
masksas a world takes them: 16 rows, a missing row0xFFFF(that layer collides with every layer), bits past the 16 layers dropped. Unmodifiable.
Constants
- standardGravity → const double
- Earth's gravity, m/s².