| 101 | } |
| 102 | |
| 103 | void 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 | |
| 121 | void Cloth::ClearInteria() |
| 122 | { |
no test coverage detected