Returns
the parallel projection vector (the projection of vec1 onto vec2).
Return Type: Vector
vec1:
Type:
a 2D, 3D or 4D Vector)
vec2
Type:
a 2D, 3D or 4D Vector)
Sample
Code
# import Mathutils
import Mathutils
# create 1st vector
vec1 = Mathutils.Vector(1.0, 0.0, 0.0)
# create 2nd vector
vec2 = Mathutils.Vector(0.0, 0.0, 1.0)
# use ProjectVecs
vecProject= Mathutils.ProjectVecs(vec1, vec2)
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.