Matrix Mathutils Module -- Blender Game Engine 2.49b


Class index  __

Method index  __

Mathutils index  __

Euler index  __

Matrix index  __

Quaternion index  __

Vector index  __


 

  


rotationPart

rotationPart()

Returns the 3D matrix for rotation and scale.
This is a 3D submatrix that corresponds to the linear term of the embedded affine transformation in 3D. Note that the (4,4) element of a matrix can be used for uniform scaling, too.

Return Type:  Matrix

Sample Code

# import Mathutils
import Mathutils

# create a Matrix 
matrix1 = Mathutils.Matrix([ 1.0, 1.0, 1.0],[ 0.0, 1.0, 0.0],[ 1.0, 0.0, 0.0])

# use rotationPart
matrixRotScale = matrix1.rotationPart()

 
The Blender Game engine uses the Python programming language to extent the capabilities of the game engine.  The Python programming language is open source and free to use, even for commercial products.  Python is a multi-platform programing language that runs on Windows, Linux/Unix and Mac OS X operating systems.  A general-purpose programming language, Python is a high-level, dynamic, object-oriented language that beginners find easy to learn.