MCPcopy Create free account
hub / github.com/doldecomp/mkdd / updateTransform

Method updateTransform

libs/JSystem/J2DGraph/J2DPane.cpp:866–880  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

864}
865
866void 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}

Callers

nothing calls this directly

Calls 1

getTransformMethod · 0.45

Tested by

no test coverage detected