Quantcast
Channel: Bugs Latest Topics
Viewing all articles
Browse latest Browse all 760

[NOT-A-BUG] disabling meshes causes intersectsMesh to always return true

$
0
0

Hi,

Why is it that when I have a mesh disabled (i.e. mesh.setEnabled(false)) any intersectsMesh by it or against it returns true? Setting the method's second parameter 'precise' to true does not help.

This output seems counter intuitive and I do not believe it is what anyone would expect. In fact, my intuitive expectation is that by having the mesh disabled, any intersectsMesh on it or against it should return false (even if the mesh being tested with it is in the same position that it would appear in if enabled).

What do you think?

 

Playground showing the problem (watch out for the browser console which prints the result of the intersectsMesh method testing two exclusive spheres in position which one of them is disabled): http://www.babylonjs-playground.com/#PD7PP#0


Viewing all articles
Browse latest Browse all 760

Trending Articles