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.
This commit is contained in:
Kester Maddock
2004-05-26 12:06:41 +00:00
parent e5cc9abceb
commit 3dd18c5c34
13 changed files with 214 additions and 231 deletions

View File

@@ -130,6 +130,17 @@ ActivateDestructionCallback(
}
}
void
SG_IObject::
ActivateUpdateTransformCallback(
){
if (m_callbacks.m_updatefunc)
{
// Call client provided update func.
m_callbacks.m_updatefunc(this, m_SGclientObject, m_SGclientInfo);
}
}
void
SG_IObject::
SetControllerTime(