I have a very simple question, but wich I think is a big deal for Grasshopper ^^
It has certainly something to do with data stream, recursive etc…
I made this little exemple, but in my other project there is incoming networking involved but wasn’t an easy setup like that one to show.
The fact is I would to be able to detect when an object enter another object but only once !
So a little idea would be to check in the stream of bools when there is :
- a switch from False to True would be OnCollisionEnter()
- a switch from True to False would be OnCollisionExit()
Maybe sombody already made a script to get this kind of behaviour.
true ( here : i = i + 1 )
The file : Collider-Question_v1.gh (12.6 KB)
A little image to complete the post :