mirror of
https://github.com/zeldaret/botw
synced 2026-05-28 16:31:11 -04:00
Update misc files to match sead math changes
This commit is contained in:
@@ -238,17 +238,17 @@ void SupportBoneResource::BaseBone::postRead_() {
|
||||
sead::Vector3f up_local = up.ref();
|
||||
aim_local.normalize();
|
||||
|
||||
side = sead::cross(aim_local, up_local);
|
||||
side.setCross(aim_local, up_local);
|
||||
// XXX: this looks like a hack. Why does this not match without an inline function?
|
||||
[&] { side.normalize(); }();
|
||||
|
||||
up_local = sead::cross(side, aim_local);
|
||||
up_local.setCross(side, aim_local);
|
||||
up_local.normalize();
|
||||
up = up_local;
|
||||
aim = aim_local;
|
||||
|
||||
base_rotate->normalize();
|
||||
base_rotate->invert(&reverse_rotate);
|
||||
base_rotate->inverse(&reverse_rotate);
|
||||
}
|
||||
|
||||
} // namespace ksys::phys
|
||||
|
||||
Reference in New Issue
Block a user