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

Method Draw

Source/Engine/Physics/Actors/Cloth.cpp:911–915  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

909}
910
911void Cloth::Draw(RenderContext& renderContext)
912{
913 // Update min draw distance for the next simulation tick
914 _lastMinDstSqr = Math::Min(_lastMinDstSqr, Vector3::DistanceSquared(_transform.Translation, renderContext.View.WorldPosition));
915}
916
917void Cloth::Draw(RenderContextBatch& renderContextBatch)
918{

Callers 1

Internal_OnDrawMethod · 0.45

Calls 2

MinFunction · 0.50
GetMainContextMethod · 0.45

Tested by

no test coverage detected