# Export bullet physics with the Y and Z axis swapped

I'm using the script example used in Blender's physics documentation:

import PhysicsConstraints
PhysicsConstraints.exportBulletFile("Physics.bullet")


The problem is that the Y and Z axis appear to be swapped when the data is loaded at runtime by a third party game engine. Is there a way to swap the coordinates before exporting to the .bullet file?

Can this swapping be automated in the script?

A video showing how the script is used

As a side note, the bullet exporter is not an add-on exporter, but rather a feature of the physics engine module.

• Is this a Blender library? Would you mind linking to it? Jun 20 '13 at 23:51
• Jun 21 '13 at 0:07

according this post Is it possible to make Blender a Y-up world? not really, though most exporters have an option to flip it.

• Bullet exporter is not an add-on exporter, but rather a feature of the physics engine module Jun 21 '13 at 0:25
• @rraallvv it would be more useful for you to add this information to your question. Jun 22 '13 at 16:26