MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / DrawDiagLine

Function DrawDiagLine

engine/Poseidon/World/Scene/ObjectIntersect.cpp:58–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56// check if two shapes are in collision state
57
58Ref<Object> DrawDiagLine(Vector3Par from, Vector3Par to, PackedColor color)
59{
60 Ref<LODShapeWithShadow> shape = ObjectLine::CreateShape();
61 Ref<Object> lineObj = new ObjectLineDiag(shape);
62 lineObj->SetConstantColor(color);
63
64 lineObj->SetPosition(from);
65 ObjectLine::SetPos(shape, VZero, to - from);
66 return lineObj;
67}
68
69static void DiagBBox(const Vector3* minMax, const Frame& pos, PackedColor color)
70{

Callers 2

CheckUnderLandMethod · 0.85
DiagBBoxFunction · 0.85

Calls 2

SetConstantColorMethod · 0.45
SetPositionMethod · 0.45

Tested by

no test coverage detected