MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / GetMouseRay

Function GetMouseRay

Source/Editors/map_editor.cpp:120–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118static const int kNumUpdatesBeforeColorSave = 5;
119
120static void GetMouseRay(LineSegment* mouseray) {
121 Camera* camera = ActiveCameras::Get();
122 mouseray->start = camera->GetPos();
123 mouseray->end = camera->GetPos() + normalize(camera->GetMouseRay()) * kMapEditorMouseRayLength;
124}
125
126class CollisionCompare {
127 public:

Callers 3

ASGetMouseRayMethod · 0.85
DrawMethod · 0.85
UpdateMethod · 0.85

Calls 3

GetFunction · 0.50
normalizeFunction · 0.50
GetPosMethod · 0.45

Tested by

no test coverage detected