blender/doc/python_api
Porteries Tristan 720d4521cd BGE : Collision mask support in raycast + and raycast cleanup.
I have removed the m_pHitObject, m_xray and m_testPropName and replace them by a temporary struct "RayCastData" which contains these datas and a collision mask. Finally i add a collision mask argument in the python function "rayCast" :
```
rayCast(to, from, dist, prop, face, xray, poly, mask)
```

It can be useful to hit only object which are on the right colision layer. for example if you have hitbox for a charater or vehicle you don't want to hit it with raycast.

test file : {F237337}
left mouse click on two planes and see console messages.

Somewhat more elaborate test file by @sybren: {F237779}
Look around and click on the cubes. One cube lamp responds, the other doesn't, based on their collision groups.

Reviewers: moguri, hg1, agoose77, campbellbarton, sybren

Reviewed By: agoose77, campbellbarton, sybren

Subscribers: campbellbarton, sergey, blueprintrandom, sybren

Projects: #game_engine, #game_physics

Differential Revision: https://developer.blender.org/D1239
2015-10-07 22:14:43 +02:00
..
blender-org fix [#28151] export OBJ don't save the extension 2011-08-03 05:32:07 +00:00
epy hide overly picky warnings from 'pylint' for pep8 script, indentation edits. 2011-11-19 16:17:35 +00:00
examples Cleanup: API docs 2015-09-08 19:42:58 +10:00
rst BGE : Collision mask support in raycast + and raycast cleanup. 2015-10-07 22:14:43 +02:00
rst_from_bmesh_opdefines.py Add flag for bmesh docs 2014-09-09 22:07:31 +10:00
sphinx_changelog_gen.py cleanup: pep8 2015-01-29 15:35:06 +11:00
sphinx_doc_gen.py Doc: escape enum name & description 2015-09-18 01:47:58 +10:00
sphinx_doc_gen.sh API Docs: remove hardcoded self from shellscript 2014-11-26 20:24:04 +01:00
sphinx_doc_gen_monkeypatch.py Cleanup: pep8 2014-09-17 18:36:17 +10:00