Skip to content

Commit 4e6a751

Browse files
committed
Added support for sub-collisions using an entity type as long as it implements ICollidable
1 parent 59b2d1e commit 4e6a751

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

FRBDK/Glue/OfficialPlugins/CollisionPlugin/Controllers/CollisionRelationshipViewModelController.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,8 +390,10 @@ private static List<string> GetAvailableSubCollisions(EntitySave firstEntity)
390390

391391
foreach (var nos in firstEntity.AllNamedObjects)
392392
{
393-
var canBeSubCollision = IsShape(nos) || nos.GetAssetTypeInfo() == AvailableAssetTypes.CommonAtis.ShapeCollection ||
394-
IsTileShapeCollection(nos);
393+
var canBeSubCollision = IsShape(nos) ||
394+
nos.GetAssetTypeInfo() == AvailableAssetTypes.CommonAtis.ShapeCollection ||
395+
IsTileShapeCollection(nos) ||
396+
nos.IsCollidableOrCollidableList();
395397

396398
if (canBeSubCollision)
397399
{

0 commit comments

Comments
 (0)