MCPcopy Create free account
hub / github.com/OneLoneCoder/olcPixelGameEngine / Walk

Method Walk

extensions/olcPGEX_RayCastWorld.h:219–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217#undef max
218
219void olc::rcw::Object::Walk(const float fWalkSpeed)
220{
221 fSpeed = fWalkSpeed;
222 vel = olc::vf2d(std::cos(fHeading), std::sin(fHeading)) * fSpeed;
223}
224
225void olc::rcw::Object::Strafe(const float fStrafeSpeed)
226{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected