📓

SolidStaticGameObjects

public class SolidStaticGameObject : MonoBehaviour
{
    //represents the current static objects in the scene. Remember to clear between scenes
    public static List<SRect> levelSolids = new List<SRect>();

    public List<ObjectRect> srects = new List<ObjectRect>();
//...

Easy access to the rectangles representing the solid parts of the current level

Methods

public void Start()

A Unity method where this class is using it to get all of the SRect references out of srects list and put them into levelSolids list, which is static so the physics collision detection can have access to them as soon as possible

public List<SRect> GetWorldRects()

Loops through all of the ObjectRects in the srects list and copy all of their SRect objects into a new list to return

public void SetLevelSolids(List<ObjectRect> srects)

Currently not in use, but if you want to have your levelSolids change mid game so physics calculations can include the change, then this is how to do that