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

Method GetSceneNodePosition

src/lua/LuaSceneNode.cpp:586–597  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

584
585
586int LuaSceneNodeMgr::GetSceneNodePosition(lua_State* L) {
587 LuaSceneNode* sceneNode = CheckLuaSceneNode(L, 1);
588 if (sceneNode == NULL) {
589 lua_pushnil(L);
590 return 1;
591 }
592 const fvec4& s = sceneNode->getSphere();
593 lua_pushfloat(L, s.x);
594 lua_pushfloat(L, s.y);
595 lua_pushfloat(L, s.z);
596 return 3;
597}
598
599
600int LuaSceneNodeMgr::GetSceneNodeRadius(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