Quote:
I've pastebin'd what I have so far at http://www.pastebin.org/17194
I'm sure there are things I've done way wrong, or roundabout, and I'm interested in hearing about any you might see, but my main focus, at the moment is the rotation.
I'm sure there are things I've done way wrong, or roundabout, and I'm interested in hearing about any you might see, but my main focus, at the moment is the rotation.
Hmm, I'll have to take a closer look - the rotation stuff is always a bit tricky, you need to figure out what conventions the engine uses for its transforms. It's probably OpenGL-style, but I'll check in more detail later. Usually you have to do three steps:
1) Transform so center of mass is at (0,0) - often this means shifting the box by its half width/height or something like that
2) Rotate about (0,0)
3) Transform so that the center of mass is at the proper world location
It's just a question of how exactly to do that using Slick, which I'm not sure of at the moment.
Quote:
I have yet to figure out, however, how to import projects with existing code into eclipse without an ANT buildfile, and since JBox2D 1.4.3 was in src, I was at a loss for how to compile it. I had to go back to NetBeans to compile the jar to migrate up to in Eclipse... I am inefficient.
I'm pretty sure if you create a new project, and then go to File->Import, under "General" there should be an option to import existing source files without needing to have a .jar, that's what I usually do. As for compiling, especially when using external libraries it's always a pain...get used to mucking with the build path settings and the "Run as..." dialog, is my advice. I rarely use NetBeans (don't know why, just more used to Eclipse), so I don't know what could be going wrong there.