Forum Migration Notice
Update (2026-01-21): The user forums are now in read-only mode pending the data migration.

Update (2026-01-12): The user forums will be put into read-only mode on the 21st of January, 00:00 CET, to prepare for the data migration.

We're transitioning to a more modern community platform by beginning of next year. Learn about the upcoming changes and what to expect.

How to change collision set with a smart component?

I want to update a collision set with a smart component. Is that somehow possible?

Answers

  • scottdf93
    scottdf93
    edited October 2020
    // Index through the collision sets in a station
     for (int i = 0; i < station.CollisionSets.Count; i++)
     {
          // We make a change to the collision set
          station.CollisionSets[i].Name = "Changed Name";
     }

    OR

    station.CollisionSets.First(x => x.DisplayName == "SpecificName").CollisionColor = Color.Black;
  • This is via SDK right?