Notifications
Clear all

[Closed] Intersects does not work as I'm expected

From maxscript reference:

[left][b]intersects[/b]  <node> <node>
   [/left]
    [left]Returns  [b]true[/b] if the bounding boxes of the two specified nodes  overlap, or [b]false[/b] if they do not  overlap.
   [/left]
   

But in some cases intersects does not work as i’m expected. Can someone explain me why?
All these objects
“HP_ChestBottom_bolt3”
“HP_ChestBottom_trim2”
“HP_ChestBottom_bolt2”
“HP_ChestBottom_bracket”
“HP_ChestBottom_bolt1”
“HP_ChestBottom_trim3”
does not return true when I use

intersects $HP_ChestBottom_bolt3 $HP_ChestBottom

Its returns false with every object listed above, Why?

Here the scene file: dropbox

4 Replies

$HP_ChestBottom_bolt3 and $HP_ChestBottom don’t intersect in your scene.
the function works correctly.

My mistake. I didnt upload the scene with proper places of the objects.
Here the new screenshot:

The same scene, The bbox of the [color=Indigo][color=SandyBrown]$HP_ChestBottom [/color][color=DarkSlateGray][color=SeaGreen]intersects with the bolt, but “intersects” return false again.

Here the scene with p roper places of the two objects: dropbox
[/color][/color][/color]

they don’t intersect! you see the intersection with selection brackets. it’s not the same size as bbox.

Thanks. This solve all my problems.