You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FBX has configurable coordinate space, the file itself specify which axis is up, forward etc. Most things that export to FBX currently uses the same coordinate space as bevy, so no further action is required for most models. But when bevy_mod_fbx encounters a file that doesn't use the same coordinate space as bevy, the model will not look properly forward.
Solutions
Models in bevy_mod_fbx are already spawned with a parent transform, to accommodate scale declared with UnitScale. So we should probably rotate this transform to properly align the model into the bevy coordinate space.
Issue with that solution is situations where the model is mirrored, in which case we'll probably create a shear, which will prevent using the transform_scale_rotation methods on GlobalTransform
The text was updated successfully, but these errors were encountered:
FBX has configurable coordinate space, the file itself specify which axis is up, forward etc. Most things that export to FBX currently uses the same coordinate space as bevy, so no further action is required for most models. But when bevy_mod_fbx encounters a file that doesn't use the same coordinate space as bevy, the model will not look properly forward.
Solutions
Models in bevy_mod_fbx are already spawned with a parent transform, to accommodate scale declared with UnitScale. So we should probably rotate this transform to properly align the model into the bevy coordinate space.
Issue with that solution is situations where the model is mirrored, in which case we'll probably create a shear, which will prevent using the
transform_scale_rotation
methods onGlobalTransform
The text was updated successfully, but these errors were encountered: