Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


matrix and vector math questions
nckomodo Offline
Junior Member

Posts: 18
Threads: 4
Joined: May 2010
Reputation: 0
#5
RE: matrix and vector math questions

Quote:cWorld3D *pWorld = mpInit->mpGame->GetScene()->GetWorld3D();
cParticleSystem3D *pSystem = pWorld->GetParticleSystem("SteamGunEffect");
cCamera3D *pCam = mpInit->mpPlayer->GetCamera();
pSystem->SetMatrix(cMath::MatrixRotate(
cVector3f(pCam->GetPitch(),(pCam->GetYaw()+1.57079633f),pCam->GetRoll()),
eEulerRotationOrder_ZYX));
pSystem->SetPosition(mpEntity->GetWorldPosition());
I've finally got it pointing the right way, almost, if I turn around the pitch seems to invert itself so it points down when I look up.
Any ideas?

I see you.
05-26-2010, 09:40 AM
Find


Messages In This Thread
matrix and vector math questions - by nckomodo - 05-25-2010, 02:51 AM
RE: matrix and vector math questions - by nckomodo - 05-26-2010, 09:40 AM



Users browsing this thread: 1 Guest(s)