Newton Rotation Help needed

BlitzMax Modules Forums/MiniB3D/Newton Rotation Help needed

thx chris for your help :) , Its working now :)

for those who are interrested, this is the new update function:

Method Update()
		newtonBodyGetMatrix(Node , Mat)
		NewtonBodyGetVelocity(Node,Velocity)
		NewtonBodyGetOmega(Node,Omega)
		Max3DSetMatrix(Self,Mat)
		Local mmp:Float Ptr=Mesh.Mat.grid
		mmp[0]=mat[0]
		mmp[1]=mat[1]
		mmp[2]=-mat[2]
		mmp[4]=mat[4]
		mmp[5]=mat[5]
		mmp[6]=-mat[6]
		mmp[8]=mat[8]
		mmp[9]=mat[9]
		mmp[10]=-mat[10]
		mmp[12]=mat[12]'posx
		mmp[13]=mat[13]'posy
		mmp[14]=-mat[14]'-posz
		Mesh.Mat.Scale(-mesh.sx,-mesh.sy,-mesh.sz)
	End Method