Hi,
I'm currently exporting the .bullet file from within blender and I need to change the coordinate system to the one Ogre3D uses. The transformation could be described as X,Z,-Y. I would want to avoid rotations and simply swap and negate for better numerical stability.
My idea is to load the .bullet file and then apply a world trasnformation to all rigid bodies to make this change. How can I write this? Using btTransform?
Thanks
how to swap coordinate system from X,Y,Z to X,Z,-Y
-
- Posts: 5
- Joined: Mon Oct 01, 2012 2:14 am
-
- Posts: 171
- Joined: Sun Jan 17, 2010 4:47 am
Re: how to swap coordinate system from X,Y,Z to X,Z,-Y
Bullet nor Ogre really has a defined coordinate system in the manner that you are describing. "Up" can be whatever you want it to be, as well as other dimensions based on how you create the objects. At best Ogre camera's do have a default of setting the +Y vector as "up", but that can be changed in one function call. Bullet also uses +Y as "up" in it's demo's.
What you have going on is the result of creating your objects in whatever editor you use to something different then what you are creating your Bullet objects with. There isn't really much in bullet you can do to change this, it's really just something you have to take into account when creating your objects. Either create your bullet objects differently, or create your ogre objects differently. Either way ensure the dimensions are consistent.
What you have going on is the result of creating your objects in whatever editor you use to something different then what you are creating your Bullet objects with. There isn't really much in bullet you can do to change this, it's really just something you have to take into account when creating your objects. Either create your bullet objects differently, or create your ogre objects differently. Either way ensure the dimensions are consistent.