![]() |
cmdfx 0.2.1
Lightweight game engine for your terminal
|
C++ Extensions for the CmdFX Physics Engine. More...
#include "cmdfx/physics/engine.h"
#include "cmdfx/core/sprites.hpp"
#include "cmdfx/physics/motion.hpp"
Go to the source code of this file.
Namespaces | |
namespace | CmdFX |
Primary namespace for CmdFX. | |
namespace | CmdFX::Engine |
A C++ wrapper around the CmdFX Physics Engine. | |
Functions | |
int | CmdFX::Engine::start () |
std::vector< std::unique_ptr< Sprite > > | CmdFX::Engine::tick () |
Ticks the physics engine and returns modified sprites. | |
void | CmdFX::Engine::cleanup () |
bool | CmdFX::Engine::isMotionDebugEnabled () |
Checks if motion debugging is enabled. | |
bool | CmdFX::Engine::isSpriteStatic (Sprite &sprite) |
void | CmdFX::Engine::setSpriteStatic (Sprite &sprite, bool isStatic) |
double | CmdFX::Engine::getForceOfGravity () |
void | CmdFX::Engine::setForceOfGravity (double force) |
double | CmdFX::Engine::getTerminalVelocity () |
void | CmdFX::Engine::setTerminalVelocity (double velocity) |
int | CmdFX::Engine::getGroundY () |
void | CmdFX::Engine::setGroundY (int y) |
double | CmdFX::Engine::getDefaultFrictionCoefficient () |
void | CmdFX::Engine::setDefaultFrictionCoefficient (double coefficient) |
double | CmdFX::Engine::getCharacterMass (char c) |
void | CmdFX::Engine::setCharacterMass (char c, double mass) |
C++ Extensions for the CmdFX Physics Engine.