mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-21 07:11:16 +00:00
Fix
This commit is contained in:
parent
d28411e7b0
commit
e31daf2c15
@ -718,10 +718,10 @@ MxLong LegoNavController::Notify(MxParam& p_param)
|
|||||||
LegoROI* roi = CharacterManager()->GetActorROI(CharacterManager()->GetActorName(g_unk0x100f66cc), TRUE);
|
LegoROI* roi = CharacterManager()->GetActorROI(CharacterManager()->GetActorName(g_unk0x100f66cc), TRUE);
|
||||||
if (roi != NULL) {
|
if (roi != NULL) {
|
||||||
MxMatrix mat;
|
MxMatrix mat;
|
||||||
ViewROI* roi = LegoOmni::GetInstance()->GetVideoManager()->GetViewROI();
|
ViewROI* viewRoi = LegoOmni::GetInstance()->GetVideoManager()->GetViewROI();
|
||||||
const float* position = roi->GetWorldPosition();
|
const float* position = viewRoi->GetWorldPosition();
|
||||||
const float* direction = roi->GetWorldDirection();
|
const float* direction = viewRoi->GetWorldDirection();
|
||||||
const float* up = roi->GetWorldUp();
|
const float* up = viewRoi->GetWorldUp();
|
||||||
CalcLocalTransform(position, direction, up, mat);
|
CalcLocalTransform(position, direction, up, mat);
|
||||||
mat.TranslateBy(direction[0] * 2.0f, direction[1] - 1.0, direction[2] * 2.0f);
|
mat.TranslateBy(direction[0] * 2.0f, direction[1] - 1.0, direction[2] * 2.0f);
|
||||||
roi->UpdateTransformationRelativeToParent(mat);
|
roi->UpdateTransformationRelativeToParent(mat);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user