[Jbullet] LWJGL util vs Swing vecmath

I’ve made my whole library with the ‘org.lwjgl.util.vector’, and I just got into JBullet, and they both use very similar libraries. But the problem is that without Swing’s vector math, things get allot harder for JBullet. But without LWJGL Util, things in my library get broken. LWJGL’s Utils Vector package is super easy to use because it was build for graphics. But Swing’s is super hard to do simple tasks, and making any kind of scaling/translation/rotations in matrices are impossible without doing some kind of type conversion, and allot of it is broken (Matrix4f transform Vector3fs, but not Vector4fs?).

Basically, JBullet needs Swing’s Vector math, but LWJGL Util’s is better by far, and build for graphics. I’m sick of tedious type conversion, what should I do?

code another math lib which does not suck :slight_smile:

Hehe, I wish… But the libraries would still be incompatible, and I’m sure as hell not re-coding JBullet :persecutioncomplex:

yea … i think it’s a bit of stucked situation.

Hi

Vecmath has nothing to do with Swing except that both are in javax. JBullet doesn’t need Swing. If you really want to use this “Util”, rewrite it to use Vecmath instead of rewriting JBullet.

Why don’t you just make your own Vector math utils? It is not that difficult, not sure how you could incorporate that into JBullet though.