Very strange issue with b2ChainShape. When creating a chain with just two vertices, it works fine:
Code:
--X, Y, R, G, B, A
{10, 5, 1, 1, 1, 1},
{110, 5, 1, 0, 0, 1}
But I wanted to break that line into several small segments of different colours:
Code:
--X, Y, R, G, B, A
{10, 5, 1, 1, 1, 1},
{20, 5, 1, 0, 0, 1},
{30, 5, 1, 1, 1, 1},
{40, 5, 1, 0, 0, 1},
{50, 5, 1, 1, 1, 1},
{60, 5, 1, 0, 0, 1},
{70, 5, 1, 1, 1, 1},
{80, 5, 1, 0, 0, 1},
{90, 5, 1, 1, 1, 1},
{100, 5, 1, 0, 0, 1},
{110, 5, 1, 1, 1, 1}
With this setup, a box falls onto the line and immediately rotates to some strange angle and gets stuck inside it.