help with conversion

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
neil
Posts: 12
Joined: Fri Sep 28, 2007 1:04 am

help with conversion

Post by neil »

i need to get this code updated to irrlicht version 1.3.1 but am having trouble. would someone mind helping?

Code: Select all

	const NxVec3 pos = pose.t;
			const NxMat33 orient = pose.M;
			core::matrix4 irrMat; 
			orient.getColumnMajorStride4(&irrMat.M[0]); //HERE DOWN CONVERSION NEEDED
			pos.get(&irrMat.M[12]);

			irrMat.M[3] = irrMat.M[7] = irrMat.M[11] = 0.0f;
			irrMat.M[15] = 1.0f;
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

You write irrMat[x] instead of irrMat.M[x] and irrMat.pointer() instead of &irrMat.M[0].
Post Reply