Add **Cloth** simulation with physics

This commit is contained in:
Wojtek Figat
2023-07-03 10:38:36 +02:00
parent 8818b3b07c
commit f81989a171
9 changed files with 1586 additions and 6 deletions

View File

@@ -270,8 +270,8 @@ void StaticModel::OnModelResidencyChanged()
void StaticModel::UpdateBounds()
{
auto model = Model.Get();
if (model && model->IsLoaded())
const auto model = Model.Get();
if (model && model->IsLoaded() && model->LODs.Count() != 0)
{
Transform transform = _transform;
transform.Scale *= _boundsScale;