MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / setOrbitDistance

Method setOrbitDistance

Engine/source/T3D/guiMaterialPreview.cpp:427–430  ·  view source on GitHub ↗

Make sure the orbit distance is within the acceptable range.

Source from the content-addressed store, hash-verified

425
426// Make sure the orbit distance is within the acceptable range.
427void GuiMaterialPreview::setOrbitDistance(F32 distance)
428{
429 mOrbitDist = mClampF(distance, mMinOrbitDist, mMaxOrbitDist);
430}
431
432// This function is meant to be used with a button to put everything back to default settings.
433void GuiMaterialPreview::resetViewport()

Callers 1

Calls 1

mClampFFunction · 0.85

Tested by

no test coverage detected