Blender Git Loki

Git Commits -> Revision df1a199

Revision df1a199 by Mitchell Stokes (master)
April 23, 2014, 03:12 (GMT)
BGE Cleanup: Removing KX_ObjectProperties, KX_BoundBoxClass, KX_BoxBounds, and KX_CBounds

These were used in BL_CreatePhysicsObjectNew() in the converter. However, all
of the data put into KX_ObjectProperties was then copied again in
KX_ConvertBulletObject(). So, instead KX_ConvertBulletObject() now gathers the
information it needs itself, which avoid this odd double conversion step for
physics.

As a side-effect, the old code would result in static non-mesh objects with no bounds
set to still have triangle mesh bounds. This would result in no bounds for these objects.
If a bounds was set that required a mesh, non-mesh objects would become sphere bounds.
This is now true regardless of whether user bounds were set. In other words, static
non-mesh objects now use sphere bounds by default instead of mesh bounds. This might
slightly alter some games, but these objects should generally be set to No Collision
anyways.

Commit Details:

Full Hash: df1a199787a59e5e2af09df56d9f9ebce779f6d9
Parent Commit: 0f91d2c
Lines Changed: +297, -537

3 Modified Paths:

/source/gameengine/Converter/BL_BlenderDataConversion.cpp (+1, -330) (Diff)
/source/gameengine/Ketsji/KX_ConvertPhysicsObject.h (+4, -104) (Diff)
/source/gameengine/Ketsji/KX_ConvertPhysicsObjects.cpp (+292, -103) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021