mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 12:24:56 +00:00
Finish CInterpolationCamera
This commit is contained in:
@@ -87,10 +87,16 @@ void ViewManager::TestGameView::think()
|
||||
{
|
||||
const CPlayer& pl = g_StateManager->GetPlayer();
|
||||
zeus::CQuaternion plQ = zeus::CQuaternion(pl.GetTransform().getRotation().buildMatrix3f());
|
||||
zeus::CTransform camXf = g_StateManager->GetCameraManager()->GetCurrentCameraTransform(*g_StateManager);
|
||||
zeus::CQuaternion camQ = zeus::CQuaternion(camXf.getRotation().buildMatrix3f());
|
||||
overlayText += hecl::Format("Player Position: x %f, y %f, z %f\n"
|
||||
" Quaternion: w %f, x %f, y %f, z %f\n"
|
||||
"Camera Position: x %f, y %f, z %f\n"
|
||||
" Quaternion: w %f, x %f, y %f, z %f\n",
|
||||
pl.GetTranslation().x, pl.GetTranslation().y, pl.GetTranslation().z, plQ.w, plQ.x, plQ.y,
|
||||
plQ.z);
|
||||
pl.GetTranslation().x, pl.GetTranslation().y, pl.GetTranslation().z,
|
||||
plQ.w, plQ.x, plQ.y, plQ.z,
|
||||
camXf.origin.x, camXf.origin.y, camXf.origin.z,
|
||||
camQ.w, camQ.x, camQ.y, camQ.z);
|
||||
}
|
||||
if (worldInfo && worldInfo->toBoolean())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user