Does the following method make sense? If not, how would I go about getting all vertices in worldspace?
private SimpleVector wsVertices(Object3D obj) {
GenericVertexController vertexController = new GenericVertexController();
vertexController.init(obj.getMesh());
SimpleVector[] vertices = vertexController.getSourceMesh();
for (int i = 0; i < vertices.length; i++)
vertices[i] *= obj.getTranslation(); //OR MAYBE obj.getTransformedCenter()?
return vertices;
}
Replace
vertices[i] *= obj.getTranslation();
with
vertices[i] *= obj.getWorldTransformation();
and it should work.
Cool, thank you.