This commit is contained in:
Wojtek Figat
2025-04-08 19:11:01 +02:00
parent 047a637029
commit 043ae687e2
2 changed files with 2 additions and 1 deletions

View File

@@ -170,7 +170,7 @@ namespace FlaxEditor.SceneGraph.Actors
// Refit into the sphere bounds that are usually calculated from mesh box bounds
Position = bounds.Center,
Radius = bounds.Radius / (Real)(Mathf.Max((float)actor.Scale.MaxValue, 0.0001f) * 0.707f),
Radius = (float)bounds.Radius / Mathf.Max((float)actor.Scale.MaxValue, 0.0001f) * 0.707f,
};
spawner(collider);
}

View File

@@ -159,6 +159,7 @@ namespace FlaxEditor.SceneGraph
/// </summary>
/// <param name="actor">The actor.</param>
/// <param name="parent">The parent.</param>
/// <param name="orderInParent">Custom index in parent to use. Value -1 means the default one (the last one).</param>
public abstract void Spawn(Actor actor, Actor parent, int orderInParent = -1);
/// <summary>