DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ EditorShapeAdd()

void SceneObject::EditorShapeAdd ( )
inlineprotected

См. определение в файле SceneObject.c строка 169

170 {
171 if (m_DebugShapeBBox != NULL)
172 return;
173
174 vector min = "0 0 0";
175 vector max = "0 0 0";
176
177 vector size = GetSize();
178
179 float width = size[0];
180 float height = size[1];
181 float length = size[2];
182
183 float width_h = width*0.5;
184 float lenght_h = length*0.5;
185
186 min[0] = -width_h;
187 min[1] = 0;
188 min[2] = -lenght_h;
189
190 max[0] = width_h;
191 max[1] = height;
192 max[2] = lenght_h;
193
194 //Log("EditorShapeAdd -> "+m_ObjectPtr.Ptr().GetType());
195
196 m_DebugShapeBBox = Debug.DrawBox(min, max);
199 }
void Debug()
Определения UniversalTemperatureSource.c:349
void EditorShapeDeselect()
Определения SceneObject.c:135
Shape m_DebugShapeBBox
Определения SceneObject.c:7
void EditorShapeUpdatePos()
Определения SceneObject.c:99
vector GetSize()
Определения SceneObject.c:143

Перекрестные ссылки Debug::DrawBox(), EditorShapeDeselect(), EditorShapeUpdatePos(), GetSize() и m_DebugShapeBBox.

Используется в PluginBase::EditorUpdate().