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

Method SetV

LuaSTGPlus/GameObjectPool.cpp:850–861  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

848}
849
850bool GameObjectPool::SetV(size_t id, double v, double a, bool updateRot)LNOEXCEPT
851{
852 GameObject* p = m_ObjectPool.Data(id);
853 if (!p)
854 return false;
855 a *= LDEGREE2RAD;
856 p->vx = v*cos(a);
857 p->vy = v*sin(a);
858 if (updateRot)
859 p->rot = a;
860 return true;
861}
862
863bool GameObjectPool::SetImgState(size_t id, BlendMode m, fcyColor c)LNOEXCEPT
864{

Callers

nothing calls this directly

Calls 1

DataMethod · 0.80

Tested by

no test coverage detected