Blender Git Commit Log

Git Commits -> Revision e7384c9

Revision e7384c9 by Benoit Bolsee (master)
April 6, 2008, 18:30 (GMT)
Commit patch #8799: Realtime SetParent function in the BGE

This patch consists in new KX_GameObject::SetParent() and KX_GameObject::RemoveParent() functions to create and destroy parent relation during game. These functions are accessible through python and through a new actuator KX_ParentActuator. Function documentation in PyDoc.
The object keeps its orientation, position and scale when it is parented but will further rotate, move and scale with its parent from that point on. When the parent relation is broken, the object keeps the orientation, position and scale it had at that time.
The function has no effect if any of the X/Y/Z scale of the object or its new parent are below Epsilon.

Commit Details:

Full Hash: e7384c9dd2d93e3814e8df51eea64f1dc687c338
SVN Revision: 14342
Parent Commit: 711306c
Lines Changed: +474, -5

3 Added Paths:

/source/gameengine/Ketsji/KX_ParentActuator.cpp (+172, -0) (View)
/source/gameengine/Ketsji/KX_ParentActuator.h (+86, -0) (View)
/source/gameengine/PyDoc/KX_ParentActuator.py (+22, -0) (View)

10 Modified Paths:

/projectfiles_vc7/gameengine/ketsji/KX_ketsji.vcproj (+6, -0) (Diff)
/source/blender/blenkernel/intern/sca.c (+3, -0) (Diff)
/source/blender/blenloader/intern/readfile.c (+4, -0) (Diff)
/source/blender/blenloader/intern/writefile.c (+3, -0) (Diff)
/source/blender/makesdna/DNA_actuator_types.h (+11, -0) (Diff)
/source/blender/src/buttons_logic.c (+28, -2) (Diff)
/source/gameengine/Converter/KX_ConvertActuators.cpp (+27, -1) (Diff)
/source/gameengine/Ketsji/KX_GameObject.cpp (+92, -2) (Diff)
/source/gameengine/Ketsji/KX_GameObject.h (+12, -0) (Diff)
/source/gameengine/PyDoc/KX_GameObject.py (+8, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021