forked from bartvdbraak/blender
720d4521cd
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 |
||
---|---|---|
.. | ||
RAS_OpenGLFilters | ||
RAS_OpenGLRasterizer | ||
CMakeLists.txt | ||
RAS_2DFilterManager.cpp | ||
RAS_2DFilterManager.h | ||
RAS_BucketManager.cpp | ||
RAS_BucketManager.h | ||
RAS_CameraData.h | ||
RAS_Deformer.h | ||
RAS_FramingManager.cpp | ||
RAS_FramingManager.h | ||
RAS_ICanvas.h | ||
RAS_ILightObject.h | ||
RAS_IPolygonMaterial.cpp | ||
RAS_IPolygonMaterial.h | ||
RAS_IRasterizer.h | ||
RAS_MaterialBucket.cpp | ||
RAS_MaterialBucket.h | ||
RAS_MeshObject.cpp | ||
RAS_MeshObject.h | ||
RAS_ObjectColor.h | ||
RAS_Polygon.cpp | ||
RAS_Polygon.h | ||
RAS_Rect.h | ||
RAS_texmatrix.cpp | ||
RAS_TexMatrix.h | ||
RAS_TexVert.cpp | ||
RAS_TexVert.h | ||
SConscript |