MCPcopy Create free account
hub / github.com/carbonengine/trinity / UpdateLines

Method UpdateLines

trinity/Tr2ScalingTool.cpp:438–464  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

436}
437
438void Tr2ScalingTool::UpdateLines()
439{
440 Vector3 wCenter = m_wBox->GetCenterOfMass();
441 // x
442 m_xLine->ClearLines();
443 m_xLine->AddLine( wCenter,
444 v4LightGray,
445 m_xBox->GetCenterOfMass(),
446 v4LightGray );
447 m_xLine->SubmitChanges();
448
449 // y
450 m_yLine->ClearLines();
451 m_yLine->AddLine( wCenter,
452 v4LightGray,
453 m_yBox->GetCenterOfMass(),
454 v4LightGray );
455 m_yLine->SubmitChanges();
456
457 // z
458 m_zLine->ClearLines();
459 m_zLine->AddLine( wCenter,
460 v4LightGray,
461 m_zBox->GetCenterOfMass(),
462 v4LightGray );
463 m_zLine->SubmitChanges();
464}
465
466void Tr2ScalingTool::ResetPrimitives()
467{

Callers

nothing calls this directly

Calls 4

GetCenterOfMassMethod · 0.80
ClearLinesMethod · 0.45
AddLineMethod · 0.45
SubmitChangesMethod · 0.45

Tested by

no test coverage detected