ShockShapes/Transform.cpp
void Transform::bake()
{
	m.identity();
	m.translate(xt, yt, zt);
	m.rotateX(xr);
	m.rotateY(yr);
	m.rotateZ(zr);
	m.scale(xs, ys, zs);
}
//Bake the transform to a matrix
Bake the transform to a matrix
Bake the transform to a matrix
void Transform::bake()
{
	m.identity();
	m.translate(xt, yt, zt);
	m.rotateX(xr);
	m.rotateY(yr);
	m.rotateZ(zr);
	m.scale(xs, ys, zs);
}
void Transform :: bake ( ) { m . identity ( ) ; m . translate ( xt , yt , zt ) ; m . rotateX ( xr ) ; m . rotateY ( yr ) ; m . rotateZ ( zr ) ; m . scale ( xs , ys , zs ) ; }
Bake the transform to a matrix
Bake the transform to a matrix