blender/source/gameengine/Rasterizer/RAS_OpenGLRasterizer
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
..
CMakeLists.txt Ghost Context Refactor 2014-10-07 15:47:32 -05:00
RAS_GLExtensionManager.cpp Ghost Context Refactor 2014-10-07 15:47:32 -05:00
RAS_GLExtensionManager.h BGE Rasterizer Cleanup: Cleaning up some includes. 2013-11-04 19:22:10 +00:00
RAS_IStorage.h Fix for recent BGE commits, when building with c++ guardedalloc. 2013-11-04 22:22:54 +00:00
RAS_ListRasterizer.cpp BGE: Fix T43761 No re-creation of display list after a mesh modification. 2015-05-17 12:53:57 +02:00
RAS_ListRasterizer.h BGE: Fix T43761 No re-creation of display list after a mesh modification. 2015-05-17 12:53:57 +02:00
RAS_OpenGLLight.cpp Ghost Context Refactor 2014-10-07 15:47:32 -05:00
RAS_OpenGLLight.h BGE code cleanup: Removing OpenGL and bf_gpu code from KX_LightObject 2014-03-27 22:32:06 -07:00
RAS_OpenGLRasterizer.cpp BGE : Collision mask support in raycast + and raycast cleanup. 2015-10-07 22:14:43 +02:00
RAS_OpenGLRasterizer.h BGE : Collision mask support in raycast + and raycast cleanup. 2015-10-07 22:14:43 +02:00
RAS_StorageIM.cpp OpenSubdiv: Commit of OpenSubdiv integration into Blender 2015-07-20 22:29:26 +02:00
RAS_StorageIM.h Fix #34483: game engine multi UV glsl materials not working correct after changes 2013-03-01 20:45:42 +00:00
RAS_StorageVA.cpp Ghost Context Refactor 2014-10-07 15:47:32 -05:00
RAS_StorageVA.h Fix #34483: game engine multi UV glsl materials not working correct after changes 2013-03-01 20:45:42 +00:00
RAS_StorageVBO.cpp Ghost Context Refactor 2014-10-07 15:47:32 -05:00
RAS_StorageVBO.h Ghost Context Refactor 2014-10-07 15:47:32 -05:00
SConscript SCons: Fix for really nasty bug with polluting configuration environment 2015-08-04 18:06:28 +02:00