JavaFX Car

Hello JBox2D'ers =).

I had just recently stumbled upon the fact that JavaFX 2 has come out, and that it is great for simple cross-platform games. I decided to try out JBox2D and JavaFX with some help from a few samples around the forums, and things appeared to go smooth. However, since I was planning to make a car game, I tried to port Emanuele's customizable car into JavaFX, and things got jumbled up. I have tried to look over the code to see if anything was missing, however everything was intact and seems like a perfect direct port of Emanuele's AS3 code. If anyone would care to help me out by fixing this port, I would be most grateful.

Also, if you are wondering of the irregularities of the sizes of the Node's, I have fixed it but decided to remove the fix as it appeared to be too hackish. The hack was to just multiply the width and height of the Node by two. Also, the irregularity of the sizes only appears to be affecting the rectangular nodes, and not the circular nodes.

What's more, it appears that the positioning appears to be messed up, however that is the main issue I am having trouble with.

Also, if you would like to see how messed up the porting went:

Image

Source Link: http://www.mediafire.com/?zqcht01rkp39yen

Original thread: https://box2d.org/forum/viewtopic.php?t=7974