diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2014-01-24 08:10:04 +0400 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2014-01-24 08:10:45 +0400 |
commit | 67f1fd25ee6361df5f84e254eea103fe7952125f (patch) | |
tree | f4ce1a7de5059810b192ffe3b506ff9f95c53917 /doc | |
parent | 52f2c8aec5e29ed81fd81ebfd8f9965c470a765a (diff) |
game engine: implement hitMaterial for collision and ray sensors
Reviewed By: moguri, kupoman
Differential Revision: https://developer.blender.org/D167
Diffstat (limited to 'doc')
-rw-r--r-- | doc/python_api/rst/bge_types/bge.types.KX_RaySensor.rst | 6 | ||||
-rw-r--r-- | doc/python_api/rst/bge_types/bge.types.KX_TouchSensor.rst | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/doc/python_api/rst/bge_types/bge.types.KX_RaySensor.rst b/doc/python_api/rst/bge_types/bge.types.KX_RaySensor.rst index 2ff989729f5..f182a84409f 100644 --- a/doc/python_api/rst/bge_types/bge.types.KX_RaySensor.rst +++ b/doc/python_api/rst/bge_types/bge.types.KX_RaySensor.rst @@ -51,6 +51,12 @@ base class --- :class:`SCA_ISensor` :type: list [x, y, z] + .. attribute:: hitMaterial + + The material of the object in the face hit by the ray. (read-only). + + :type: string + .. attribute:: rayDirection The direction from the ray (in worldcoordinates). (read-only). diff --git a/doc/python_api/rst/bge_types/bge.types.KX_TouchSensor.rst b/doc/python_api/rst/bge_types/bge.types.KX_TouchSensor.rst index fd8f319f6f3..876d14bc6c8 100644 --- a/doc/python_api/rst/bge_types/bge.types.KX_TouchSensor.rst +++ b/doc/python_api/rst/bge_types/bge.types.KX_TouchSensor.rst @@ -39,3 +39,9 @@ base class --- :class:`SCA_ISensor` :type: :class:`CListValue` of :class:`KX_GameObject` + .. attribute:: hitMaterial + + The material of the object in the face hit by the ray. (read-only). + + :type: string + |