MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / GetSceneNodeRadius

Method GetSceneNodeRadius

src/lua/LuaSceneNode.cpp:600–608  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

598
599
600int LuaSceneNodeMgr::GetSceneNodeRadius(lua_State* L) {
601 LuaSceneNode* sceneNode = CheckLuaSceneNode(L, 1);
602 if (sceneNode == NULL) {
603 lua_pushnil(L);
604 return 1;
605 }
606 lua_pushfloat(L, sqrtf(sceneNode->getSphere().w));
607 return 1;
608}
609
610
611int LuaSceneNodeMgr::GetSceneNodeRadians(lua_State* L) {

Callers

nothing calls this directly

Calls 3

CheckLuaSceneNodeFunction · 0.85
lua_pushfloatFunction · 0.85
lua_pushnilFunction · 0.50

Tested by

no test coverage detected