Hello there,
Check the following to verify if the setup is correct,
Check if the player game object is tagged as “Player”.
Check if isTrigger boolean is not enabled in any of the objects.
Check if one of the objects have rigidbody component attached it it (this is very important)
And also one more problem is in your code.
def OnCollisionStay():
if tag == "Player"
Debug.Log("Caught")
in the second line if tag == “Player”, you are not checking the colliding player object, you are just check if tag of the object where the script attached is “Player”. So if the script is attached on the Collider you want to check, it will never give tag as “Player”. so code has to be changed a bit and should check the information from collisionInfo.
def OnCollisionStay(collisionInfo as Collision) as void:
Debug.Log ("collider tag : "+collisionInfo.collider.tag); //This is to verify if the OnCollisionStay is getting called
if collisionInfo.collider.tag == "Player"
Debug.Log("Caught")
PS: This is the first time im trying Boo, this code cannot be jus copied and used (probably ).