Added an UpdateTransform callback from SceneGraph -> Physics.
authorKester Maddock <Christopher.Maddock.1@uni.massey.ac.nz>
Wed, 26 May 2004 12:06:41 +0000 (12:06 +0000)
committerKester Maddock <Christopher.Maddock.1@uni.massey.ac.nz>
Wed, 26 May 2004 12:06:41 +0000 (12:06 +0000)
commit3dd18c5c34390316ac95b972aaa989455cf8ead6
treecb5e8fa1804e30838e19d8518ed3e0f0765eb3c8
parente5cc9abceb5047b934b3ae8c4aac521d7e82fc00
Added an UpdateTransform callback from SceneGraph -> Physics.
Profiling revealed that the SceneGraph updated every physics object, whether it moved or not, even though the physics object was at the right place.  This would cause SOLID to go and update its bounding boxes, overlap tests etc.
This callback handles the special case (parented objects) where the physics scene needs to be informed of changes to the scenegraph.

Added Python attributes (mass, parent, visible, position, orientation, scaling) to the KX_GameObject module.
Make KX_GameObject use the KX_PyMath Python <-> Moto conversion.
13 files changed:
source/gameengine/Ketsji/KX_GameObject.cpp
source/gameengine/Ketsji/KX_GameObject.h
source/gameengine/Ketsji/KX_SG_NodeRelationships.cpp
source/gameengine/Ketsji/KX_SG_NodeRelationships.h
source/gameengine/Ketsji/KX_SumoPhysicsController.cpp
source/gameengine/Physics/Sumo/SumoPhysicsController.cpp
source/gameengine/SceneGraph/SG_IObject.cpp
source/gameengine/SceneGraph/SG_IObject.h
source/gameengine/SceneGraph/SG_Node.cpp
source/gameengine/SceneGraph/SG_Node.h
source/gameengine/SceneGraph/SG_ParentRelation.h
source/gameengine/SceneGraph/SG_Spatial.cpp
source/gameengine/SceneGraph/SG_Spatial.h