reloadModel method
model was loaded again: its mesh and hull colliders take its new
triangles. Call once they are there — the ModelAsset at that path
answers with them — and each such body is made again, with no enter
or exit for what it touches; until the new triangles arrive, a body
keeps its old shape.
Implementation
void reloadModel(String model) {
shapes.forgetModel(model);
for (final link in _bodies.values) {
final c = link.collider;
if (c.model == model &&
(c.shape == ColliderShape3D.mesh ||
c.shape == ColliderShape3D.convexHull)) {
link.reloading = true;
}
}
}