MCPcopy Create free account
hub / github.com/9chu/LuaSTGPlus / GetV

Method GetV

LuaSTGPlus/GameObjectPool.cpp:840–848  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

838}
839
840bool GameObjectPool::GetV(size_t id, double& v, double& a)LNOEXCEPT
841{
842 GameObject* p = m_ObjectPool.Data(id);
843 if (!p)
844 return false;
845 v = sqrt(p->vx * p->vx + p->vy * p->vy);
846 a = atan2(p->vy, p->vx) * LRAD2DEGREE;
847 return true;
848}
849
850bool GameObjectPool::SetV(size_t id, double v, double a, bool updateRot)LNOEXCEPT
851{

Callers

nothing calls this directly

Calls 1

DataMethod · 0.80

Tested by

no test coverage detected