Hi,
I was experimenting with building a custom plane. Is there any order which the addTriangle() or the vectors must be added?
This works:
objSurface.addTriangle(new SimpleVector(-8.0f, 8.0f, 0.0f),
new SimpleVector( 8.0f, 8.0f, 0.0f),
new SimpleVector( 8.0f, -8.0f, 0.0f));
objSurface.addTriangle(new SimpleVector( 8.0f, -8.0f, 0.0f),
new SimpleVector(-8.0f, -8.0f, 0.0f),
new SimpleVector(-8.0f, 8.0f, 0.0f));
Where as this doesn't work:
objSurface.addTriangle(new SimpleVector(-8.0f, 8.0f, 0.0f),
new SimpleVector( 8.0f, 8.0f, 0.0f),
new SimpleVector( 8.0f, -8.0f, 0.0f));
objSurface.addTriangle(new SimpleVector(-8.0f, 8.0f, 0.0f),
new SimpleVector(-8.0f, -8.0f, 0.0f),
new SimpleVector( 8.0f, -8.0f, 0.0f));
Can someone explain?
Thanks.