Go to file
Campbell Barton 60d099648c added a factor argument for aligning to vector, this isn't correct since it does linear interpolation of the vector and renormalizes.
(can be improved to rotate correctly but for our  use ist ok for now, would also be useful to have an argument to clamp the maximum rotation angle to get a constant rotation speed),

This will used to make franky upright when falling from an angle, to track to a surface when hanging onto a ledge and setting the glide pitch.
Without this rotation is instant and jerky.

currently this is done with Mathutils which isnt available in Blender Player.

def do_rotate_up(own):
	own.alignAxisToVect([0,0,1], 2, 0.1)

replaces...

def do_rotate_up(own):
	up_nor = Vector(0,0,1)
	own_mat = Matrix(*own.getOrientation()).transpose()
	own_up = up_nor * own_mat
	ang = AngleBetweenVecs(own_up, up_nor)
	if ang > 0.005:
		# Set orientation
		cross = CrossVecs(own_up, up_nor)
		new_mat = own_mat * RotationMatrix(ang*0.1, 3, 'r', cross)
		own.setOrientation(new_mat.transpose())


M    source/gameengine/Ketsji/KX_GameObject.cpp
M    source/gameengine/Ketsji/KX_GameObject.h
2008-07-09 09:21:52 +00:00
bin/.blender Update of the Urainian translation 2008-04-21 20:57:23 +00:00
blenderplayer Merge of apricot branch game engine changes into trunk, excluding GLSL. 2008-06-17 10:27:34 +00:00
CMake CMake: Move genrated dna.c and cmake_blender_libs.txt to binary directories to keep source dir pristine. Also flag removed libraries as status and not "error" messages. 2006-12-07 00:18:57 +00:00
config == RED one (redcode) == 2008-06-02 21:35:57 +00:00
doc * add small bit of docs about BF_CONFIG 2008-04-28 09:41:51 +00:00
extern == Redcode == 2008-06-22 15:48:12 +00:00
intern patch from res2k to stop the blender window being upscaled on vista. 2008-07-07 22:11:11 +00:00
po Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
projectfiles == Sequencer == 2007-10-02 12:36:53 +00:00
projectfiles_vc7 BGE logic patch: new "Add" mode for Ipo actuator, several corrections in state system. 2008-07-08 12:18:43 +00:00
release Updates from Roger Wickes 2008-07-05 11:38:16 +00:00
source added a factor argument for aligning to vector, this isn't correct since it does linear interpolation of the vector and renormalizes. 2008-07-09 09:21:52 +00:00
tools exiting wasnt working (was raising errors), also use dict.keys() rather then appending from iteritems, 2008-07-09 00:58:57 +00:00
CMakeLists.txt * add MSVC9 check for lib_vs2008. (CMake users, please verify. Provided by zebulon). 2008-05-01 18:20:00 +00:00
COPYING Biiig commit! Thanks to 2-3 weeks of cvs freeze... 2004-12-27 19:28:52 +00:00
Makefile Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
README Test commit, nothing to see here. 2004-08-24 02:51:07 +00:00
SConstruct Change plugin.def to pluging.DEF for case sensitive operating systems. 2008-05-01 14:22:21 +00:00

Welcome to the fun world of open source.

For instructions on building and installing Blender, please see the file named
INSTALL.


---------------------.Blanguages and the .blender directory---------------------

The .blender directory holds various data files for Blender.
In the 2.28a release those are the .Blanguages file containing a list of
translations, the translations themselves and a default ttf font.

Blender checks for the presence of this directory in several locations:
	- the current directory
	- your home directory
	- On OSX, the blender bundle is also checked 
	- On Windows, the installation dir is checked.

If you get a 'File ".Blanguages" not found' warning, try to copy the .blender
dir to one of these locations (your home directory being recommended).



-------------------------------------Links--------------------------------------

Getting Involved:
http://www.blender.org/docs/get_involved.html

Community:
http://www.blender3d.org/Community/

Main blender development site:
http://www.blender.org/

The Blender project homepage:
http://projects.blender.org/projects/bf-blender/

Documentation:
http://www.blender.org/modules.php?op=modload&name=documentation&file=index

Bug tracker:
http://projects.blender.org/tracker/?atid=125&group_id=9&func=browse

Feature request tracker:
http://projects.blender.org/tracker/?atid=128&group_id=9&func=browse