Mathutils Module -- Blender Game Engine 2.49b


Class index  __

Method index  __

Mathutils index  __

Euler index  __

Matrix index  __

Quaternion index  __

Vector index  __


 




ScaleMatrix

ScaleMatrix(factor, matSize, axis)

Creates a matrix representing a scaling.

Return Type:  Matrix

factor
The factor of scaling to apply.
Type:  float

matSize
The size of the scale matrix. Can be 2x2, 3x3, or 4x4.
Type:  integer

axis  (optional)
Direction to influence scale
Type:  Vector

Sample Code

# import Mathutils
import Mathutils

# create a 3x3 Scale Matrix
matrixScale = Mathutils.ScaleMatrix(2.0, 3)

 
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.