Box2D
3.0.0
A Real-Time-Oriented 2-D Physics Engine
|
World construction definitions. More...
#include <World.hpp>
Public Member Functions | |
constexpr Def & | UseGravity (LinearAcceleration2D value) noexcept |
constexpr Def & | UseMinVertexRadius (Length value) noexcept |
constexpr Def & | UseMaxVertexRadius (Length value) noexcept |
Public Attributes | |
LinearAcceleration2D | gravity = EarthlyGravity |
Gravity. More... | |
Length | minVertexRadius = DefaultLinearSlop * RealNum{2} |
Minimum vertex radius. More... | |
Length | maxVertexRadius = RealNum{255} * Meter |
Maximum vertex radius. More... | |
World construction definitions.
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
LinearAcceleration2D box2d::World::Def::gravity = EarthlyGravity |
Gravity.
The acceleration all dynamic bodies are subject to.
Maximum vertex radius.
This is the maximum vertex radius that this world establishes which bodies shall allow fixtures to be created with. Trying to create a fixture with a shape having a larger vertex radius shall be rejected with a nullptr
returned value.
Length box2d::World::Def::minVertexRadius = DefaultLinearSlop * RealNum{2} |
Minimum vertex radius.
This is the minimum vertex radius that this world establishes which bodies shall allow fixtures to be created with. Trying to create a fixture with a shape having a smaller vertex radius shall be rejected with a nullptr
returned value.