How we can do subj with the required precision?
1. All meshes have different geometry, unigine *.mesh format.
2. One mesh may be inside into other mesh and test must be fast too in this situation.
3. And all surfaces of first and second mesh may be transform by setTransform methods.
4. We need do it in C++ api and UnigineScript.
p.s.: Many members ask about it in different words.
https://developer.unigine.com/forum/topic/804-doing-intersection-test-between-two-shapes/
https://developer.unigine.com/forum/topic/777-continuous-collision-performance/
https://developer.unigine.com/forum/topic/645-intersection-testing-in-large-worlds/
https://developer.unigine.com/forum/topic/846-questions-about-objectmeshs-collisionintersection-functions/
https://developer.unigine.com/forum/topic/778-performing-intersection-tests-using-an-oriented-box/
p.s. 2: BUG in this methods, it has doesn't work if surface was transformed.
// triangle collision
int getCollision(const BoundBox &bb,Vector &ctriangles,int surface);
int getCollision(const BoundSphere &bs,Vector &ctriangles,int surface);
int getCollision(const BoundFrustum &bf,Vector &ctriangles,int surface);
int getCollision(const vec3 &p0,const vec3 &p1,Vector &ctriangles,int surface);