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

Method Rebuild

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

Source from the content-addressed store, hash-verified

101}
102
103void Cloth::Rebuild()
104{
105#if WITH_CLOTH
106 if (_cloth)
107 {
108 // Remove old
109 if (IsDuringPlay())
110 PhysicsBackend::RemoveCloth(GetPhysicsScene()->GetPhysicsScene(), _cloth);
111 DestroyCloth();
112 }
113
114 // Create new
115 CreateCloth();
116 if (IsDuringPlay() && _cloth)
117 PhysicsBackend::AddCloth(GetPhysicsScene()->GetPhysicsScene(), _cloth);
118#endif
119}
120
121void Cloth::ClearInteria()
122{

Callers 1

UpdateClothsMethod · 0.45

Calls 2

GetPhysicsSceneFunction · 0.85
GetPhysicsSceneMethod · 0.80

Tested by

no test coverage detected