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

Method SetSceneNodeRadius

src/lua/LuaSceneNode.cpp:488–496  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

486
487
488int LuaSceneNodeMgr::SetSceneNodeRadius(lua_State* L) {
489 LuaSceneNode* sceneNode = CheckLuaSceneNode(L, 1);
490 const float rad = luaL_checkfloat(L, 2);
491 if (sceneNode) {
492 sceneNode->publicSetRadius(rad * rad);
493 }
494 lua_settop(L, 1);
495 return 1;
496}
497
498
499int LuaSceneNodeMgr::SetSceneNodeUseArrays(lua_State* L) {

Callers

nothing calls this directly

Calls 4

CheckLuaSceneNodeFunction · 0.85
luaL_checkfloatFunction · 0.85
publicSetRadiusMethod · 0.80
lua_settopFunction · 0.50

Tested by

no test coverage detected