MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / NodeSizeByDistance

Function NodeSizeByDistance

Source/Engine/Level/Actors/Spline.cpp:496–501  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

494namespace
495{
496 FORCE_INLINE float NodeSizeByDistance(const Vector3& nodePosition, bool scaleByDistance)
497 {
498 if (scaleByDistance)
499 return (float)(Vector3::Distance(DebugDraw::GetViewPos(), nodePosition) / 100);
500 return 5.0f;
501 }
502
503 void DrawSpline(Spline* spline, const Color& color, const Transform& transform, bool depthTest, bool scaleByDistance = false)
504 {

Callers 6

DrawSplineFunction · 0.85
RayCastSelfMethod · 0.85
OnDebugDrawMethod · 0.85
RayCastSelfMethod · 0.85
OnDebugDrawMethod · 0.85
EditSplineWithSnapMethod · 0.85

Calls 1

DistanceFunction · 0.85

Tested by

no test coverage detected