Advanced Thing: Flag (ex. Flag-0) The flag features a simple pole and a flag cloth. This object attempts to recreate cloth-like motion. The angles of each flag segment is determined using the sine function, its derivative (cosine), and the previous segment. All segments are linked up to simulate a flag waving in the wind.