World configuration data. More...
#include <WorldConf.hpp>
Public Member Functions | |
constexpr WorldConf & | UseMinVertexRadius (Positive< Length > value) noexcept |
Uses the given min vertex radius value. | |
constexpr WorldConf & | UseMaxVertexRadius (Positive< Length > value) noexcept |
Uses the given max vertex radius value. | |
constexpr WorldConf & | UseInitialTreeSize (ContactCounter value) noexcept |
Uses the given value as the initial dynamic tree size. | |
Public Attributes | |
Positive< Length > | minVertexRadius = DefaultMinVertexRadius |
Minimum vertex radius. More... | |
Positive< Length > | maxVertexRadius = DefaultMaxVertexRadius |
Maximum vertex radius. More... | |
ContactCounter | initialTreeSize = 4096 |
Initial tree size. | |
Related Functions | |
(Note that these are not member functions.) | |
constexpr WorldConf | GetDefaultWorldConf () noexcept |
Gets the default definitions value. More... | |
|
related |
Gets the default definitions value.
Positive<Length> playrho::d2::WorldConf::maxVertexRadius = DefaultMaxVertexRadius |
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.
Positive<Length> playrho::d2::WorldConf::minVertexRadius = DefaultMinVertexRadius |
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.
Referenced by playrho::d2::WorldImpl::WorldImpl().