terrymisu

I noticed that the C++ version of Bone::updateWorldTransform has an extra check that Corona is missing... I'm not sure if this is a bug.

C++ does some extra things if data->flipY is set, where as Corona does not.

C++ has:

if (flipX) {
m00 = -m00;
m01 = -m01;
}
if (flipY) {
m10 = -m10;
m11 = -m11;
}
if (data->flipY) {
m10 = -m10;
m11 = -m11;
}
While Corona has:
if flipX then
self.m00 = -self.m00
self.m01 = -self.m01
end
if flipY then
self.m10 = -self.m10
self.m11 = -self.m11
end
Аватара пользователя
terrymisu

Kickstarter Backer
  • Сообщения: 136

Nate

data->flipY is true when a y-up coordinate system is used. Corona is always y-up.
Аватара пользователя
Nate

Nate
  • Сообщения: 9288


Вернуться в Editor