Hey, i’m probably just doing something stupid, but I am unable to resolve my problem by googling and I’m hoping you guys can help if you have the solution on hand.
The error is thrown here,
new Mesh((Transform[])vertices.toArray(),(Quad[])quads.toArray(),(Tri[])tris.toArray())
The error is,
Exception in thread "main" java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Lcore.Transform;
at renderable.Mesh.fromFile(Mesh.java:136)
at testing.Main.main(Main.java:78)
“vertices”, “quads” and “tris” are ArrayList’s of their respective types.