BGE KX_GameObject new 'worldDimensions' and 'localDimensions' properties accessible from Python API (T42017)
AbandonedPublic

Authored by Razvan Cosmin Radulescu (razvanc87) on Sep 8 2015, 1:14 PM.

Details

Summary

The Python API misses a "dimensions" property on KX_GameObject. This patch addresses this issue. I don't know if it's the best implementation, but it works.

There are two new functions now:
KX_GameObject:NodeGetWorldDimensions and
KX_GameObject:NodeGetLocalDimensions used to create the new Python accessible variables:

worldDimensions (the dimensions of the object on x, y, z relative to the world axis)
localDimensions (the dimensions of the object on x, y, z relative to the local axis)
Both new attributes are of type MT_Vector3.

Has been discussed at https://developer.blender.org/T42017

Diff Detail

Razvan Cosmin Radulescu (razvanc87) retitled this revision from to BGE KX_GameObject new 'worldDimensions' and 'localDimensions' properties accessible from Python API (T42017).Sep 8 2015, 1:14 PM

This revision can be replaced by methodes bound.min/max in D1475.

This has become obsolete with the changes in the UPBGE branch. Closing