Add new broad phase collision response to Solid: this will let us hook (and potential...
[blender.git] / extern / solid / src / DT_C-api.cpp
index c07a3bb7ccc397d3cf1ebf30d03b141fe8e4147e..ac16deda87dc5269889e5a13342b37fe62e9fbe8 100755 (executable)
@@ -372,6 +372,14 @@ void DT_GetBBox(DT_ObjectHandle object, DT_Vector3 min, DT_Vector3 max)
        bbox.getMax().getValue(max);
 }
 
+DT_Bool DT_GetIntersect(DT_ObjectHandle object1, DT_ObjectHandle object2, DT_Vector3 vec)
+{
+       MT_Vector3 v;
+       DT_Bool result = intersect(*(DT_Object*)object1, *(DT_Object*)object2, v);
+       v.getValue(vec);
+       return result;
+}
+
 DT_Scalar DT_GetClosestPair(DT_ObjectHandle object1, DT_ObjectHandle object2,
                                                        DT_Vector3 point1, DT_Vector3 point2) 
 {