Translation (Moving)
 
 
 

Translation matrices use the following matrix positions:

There are global functions in the 3ds Max API to create these translation matrices and to apply translation to existing matrices. Several of these are given below:

Matrix3 TransMatrix(const Point3& p);

Builds a new matrix for use as a translation transformation.

A method of Matrix3 allows the translation portion of the matrix to be set.

void Matrix3::SetTrans(constPoint3 p)

Sets the translation portion of this matrix to the specified values.

void Matrix3::NoTrans();

This method zeros the translation portion of this matrix.

One can also retrieve the translation portion of a matrix using the Matrix3 method:

Point3 Matrix3::GetTrans();

Returns the translation component of this matrix.