mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
game engine: implement hitMaterial for collision and ray sensors
Reviewed By: moguri, kupoman Differential Revision: https://developer.blender.org/D167
This commit is contained in:
parent
52f2c8aec5
commit
67f1fd25ee
6 changed files with 22 additions and 4 deletions
|
|
@ -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).
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue