Bug or normal behaviour?
I’m working on a racing game and using meshes for my road tiles.
The good thing is I only need one texture, just manipulating the mesh to make curves, and I’m very satisfied with the results.
The bad thing is, once manipulated, the mesh will display correctly, but contentWidth and contentHeight remain the same.
ex:
| | \ \
| | \ \
| | | |
| | | |
The width of the curved road tile should now be greater than the original one.
It means that when the mesh is about to go off screen, it will be culled even if a portion is still visible on screen. The result is parts of the road near the edges of the screen will just disappear, and it’s bad.
Should I look for another way to draw my road tiles (like one image for each curve), or is it just a bug?