MCPcopy Create free account
hub / github.com/StrongPC123/Far-Cry-1-Source-Full / GetLocalBBox

Method GetLocalBBox

CrySystem/ScriptObjectEntity.cpp:2814–2833  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2812}
2813
2814int CScriptObjectEntity::GetLocalBBox(IFunctionHandler *pH)
2815{
2816 CHECK_PARAMETERS(2);
2817 Vec3 mins,maxs;
2818
2819 CScriptObjectVector minVec(m_pScriptSystem,false);
2820 CScriptObjectVector maxVec(m_pScriptSystem,false);
2821 _SmartScriptObject res(m_pScriptSystem,false);
2822
2823 if (m_pEntity)
2824 {
2825 Vec3 min,max;
2826 m_pEntity->GetLocalBBox(min,max);
2827 minVec=min;
2828 maxVec=max;
2829 res->SetValue("min",minVec);
2830 res->SetValue("max",maxVec);
2831 }
2832 return pH->EndFunction(res);
2833}
2834
2835//////////////////////////////////////////////////////////////////////////
2836int CScriptObjectEntity::SetRadius(IFunctionHandler *pH)

Callers 1

CalcBBoxMethod · 0.45

Calls 2

EndFunctionMethod · 0.80
SetValueMethod · 0.45

Tested by

no test coverage detected