Mathutils Module -- Blender Game Engine 2.49b


Class index  __

Method index  __

Mathutils index  __

Euler index  __

Matrix index  __

Quaternion index  __

Vector index  __


 




OrthoProjectionMatrix

OrthoProjectionMatrix(plane, matSize, axis)

Returns a matrix that represents an orthographic projection

Return Type: Matrix

plane
Type:  string
  "x"   = x projection 2D
  "y"   = y projection 2D
  "xy" = xy projection
  "xz" = xz projection
  "yz" = yz projection
  "r"   = arbitrary projection plane
matSize
Type:  integer
  The size of the projection matrix to construct. Can be 2D, 3D, or 4D.
axis  (optional -- The arbitrary axis used with the "R" plane type)
Type: Vector
  Arbitrary perpendicular plane vector.

Sample Code

# import Mathutils
import Mathutils

# create a 2D Matrix
orthoMatrix = Mathutils.OrthoProjectionMatrix("x" , 2)

# create a 3D Matrix
orthoMatrix = Mathutils.OrthoProjectionMatrix("xy" , 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.