OptionalcollisionsDo collisions happen, or do other bodies glide through this?
OptionaldensityThe density of the body
OptionaldisableShould rotation be disabled?
OptionaldynamicShould the body be forced to be dynamic?
OptionalelasticityThe elasticity of the body
OptionalfrictionThe friction of the body
OptionalkinematicShould the body be forced to be kinematic?
OptionalpassEntities with a matching nonzero Id don't collide with each other
OptionalrotateShould the actor rotate based on its direction of movement?
OptionalrotationThe speed at which to rotate, in rotations per second
OptionalsceneThe scene where this body should be made (defaults to stage.world)
OptionalsingleAre collisions only valid from one direction? Expressed as the zone
(see relativeZone) something must be in to collide with this body,
e.g. DIRECTION.N for "solid only when approached from above."
OptionalstickyDelay (milliseconds) after something stops sticking, before it can stick again
OptionalstickyWhich sides of the body are sticky, if any? Expressed as the zone (see
relativeZone) an actor is in when touching that side, e.g. DIRECTION.N
for "stuff that touches my top."
OptionalstickyFastest speed (meters per second) at which something can move, relative to this body, and still stick to it. Something that is moving faster (like a player who is walking across a sticky platform) doesn't stick until it slows down. Defaults to 0.5.
PhysicsCfg describes provides advanced, but optional, ways of altering the physical behavior of rigid bodies when they are being constructed. Each field's own doc comment is the single source of truth for that option;
CircleBody/BoxBody/PolygonBody's constructors just link here via{@link PhysicsCfg}instead of re-describing every field.