All pastes #504252 Raw Edit

Unnamed

public cpp v1 · immutable
·published 2007-05-23 03:15 UTC
rendered paste body
	//The normal up vector for a camera	irr::core::vector3df UpVector(0,1,0);		//We will use this to create make the up vector tilt	irr::core::matrix4 TiltMatrix;	//IDK if the irr matrix initialises correctly	TiltMatrix.makeIdentity();	//A 45 degree tilt rotation	TiltMatrix.setRotationDegrees( irr::core::vector3df(45,0,0 ) );	irr::core::matrix4 CameraMatrix = Camera->getRelativeTransformation();	CameraMatrix.setTranslation( irr::core::vector3df(0,0,0) );	TiltMatrix = TiltMatrix * CameraMatrix;	//The Upvector tilted	TiltMatrix.transformVect( UpVector );	Camera->setUpVector( UpVector);