| 2812 | } |
| 2813 | |
| 2814 | int 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 | ////////////////////////////////////////////////////////////////////////// |
| 2836 | int CScriptObjectEntity::SetRadius(IFunctionHandler *pH) |
no test coverage detected