| 864 | } |
| 865 | |
| 866 | void J2DPane::updateTransform(const J2DAnmTransform* transform) |
| 867 | { |
| 868 | if (mAnimPaneIndex != 0xFFFF && transform) { |
| 869 | J3DTransformInfo info; |
| 870 | transform->getTransform(mAnimPaneIndex, &info); |
| 871 | mScale.x = info.mScale.x; |
| 872 | mScale.y = info.mScale.z; |
| 873 | mAngleX = (u16)info.mRotation.x * 360.0f / 65535.0f; |
| 874 | mAngleY = (u16)info.mRotation.z * 360.0f / 65535.0f; |
| 875 | mAngleZ = (u16)info.mRotation.y * 360.0f / 65535.0f; |
| 876 | mOffset.x = info.mTranslation.x; |
| 877 | mOffset.y = info.mTranslation.z; |
| 878 | calcMtx(); |
| 879 | } |
| 880 | } |
nothing calls this directly
no test coverage detected