|
CoriEngine
|
#include "Physics.hpp"
Go to the source code of this file.
Namespaces | |
| namespace | Cori |
| Global engine namespace. | |
| namespace | Cori::Physics |
| Anything connected to physics is in this namespace. Please refer to Box2D docs 'https://box2d.org/' for any details regarding physics. | |
Functions | |
| WindingOrder | Cori::Physics::GetPolygonWindingOrder (const std::vector< Vec2 > &polygon) |
| Calculates the winding order of the polygon made up from individual points. Box2D version. Takes Box2Ds vec2s. | |
| WindingOrder | Cori::Physics::GetPolygonWindingOrder (const std::vector< tmx::Vector2f > &polygon) |
| Calculates the winding order of the polygon made up from individual points. TMXLite version. Takes TMXLite vec2s. | |
| const char * | Cori::Physics::WindingOrderToString (WindingOrder order) |
| Converts the WindingOrder enumerator to string, for logging. | |
| glm::vec2 | Cori::Physics::ToPixels (const Vec2 vec) |
| Converts physical meters to camera space pixels. | |
| Vec2 | Cori::Physics::ToMeters (const glm::vec2 vec) |
| Converts camera space pixels to physical meters. | |
| std::string | Cori::Physics::Vec2ToString (Vec2 vec) |
| Converts a native Box2D vec2 to string, for logging. | |