121
Support / Serialized object displaced/different center
« on: July 03, 2013, 09:19:59 am »
I used the mesh serializer plugin to convert my 3ds files.
.3ds looks like this:
.ser looks like this:
The red gun mounts are projected from child objects with identical relative positions in both cases.
Also, when playing the game and the camera is mounted at (0,0,0) looking forward, the guns are not firing symmetrical.
So it seems the ship model itself is slightly displaced or rather the center is calculated different, so relative positions change from 3ds.
btw, I'm calling world.buildAllObjects() in both cases.
.3ds looks like this:
.ser looks like this:
The red gun mounts are projected from child objects with identical relative positions in both cases.
Also, when playing the game and the camera is mounted at (0,0,0) looking forward, the guns are not firing symmetrical.
So it seems the ship model itself is slightly displaced or rather the center is calculated different, so relative positions change from 3ds.
btw, I'm calling world.buildAllObjects() in both cases.