Box2D
3.0.0
A Real-Time-Oriented 2-D Physics Engine
|
#include <WorldManifold.hpp>
Classes | |
struct | PointSeparation |
Public Types | |
using | size_type = std::remove_const< decltype(MaxManifoldPoints)>::type |
Public Member Functions | |
WorldManifold () noexcept=default | |
Default constructor. More... | |
constexpr | WorldManifold (UnitVec2 normal) noexcept |
constexpr | WorldManifold (UnitVec2 normal, PointSeparation ps0) noexcept |
constexpr | WorldManifold (UnitVec2 normal, PointSeparation ps0, PointSeparation ps1) noexcept |
size_type | GetPointCount () const noexcept |
Gets the point count. More... | |
UnitVec2 | GetNormal () const noexcept |
Gets the normal of the contact. More... | |
Length2D | GetPoint (size_type index) const noexcept |
Gets the indexed point's location in world coordinates. More... | |
Length | GetSeparation (size_type index) const noexcept |
Gets the amount of separation at the given indexed point. More... | |
This is used to recoginze the current state of a contact manifold in world coordinates.
using box2d::WorldManifold::size_type = std::remove_const<decltype(MaxManifoldPoints)>::type |
|
defaultnoexcept |
Default constructor.
A default constructed world manifold will gave a point count of zero, an invalid normal, invalid points, and invalid separations.
|
inlineexplicitnoexcept |
|
inlineexplicitnoexcept |
|
inlineexplicitnoexcept |
|
inlinenoexcept |
Gets the normal of the contact.
This is a directional unit-vector.
Gets the indexed point's location in world coordinates.
MaxManifoldPoints
index | Index to return point for. This must be between 0 and GetPointCount() to get a valid point from this method. |
|
inlinenoexcept |
Gets the point count.
This is the maximum index value that can be used to access valid point or separation information.
Gets the amount of separation at the given indexed point.
MaxManifoldPoints
index | Index to return separation for. This must be between 0 and GetPointCount() . |