2021年1月3日星期日

Detect collision in Unity 3D using Tags

The question may be very noob, but it's because I'm a noob and I started programming 3 days ago, The question is how can I detect collision in unity using tags, the idea is to make a system of doors like portal, so for that i tag a cube by cube (bruh) and a door like a wall, and only GameObjects with the tag of cube can activate the door. I am doing the code in the void OnCollisionEnter(Collision collision) but I don't know if I'm doing that right. Thanks for reading my first question :) (also sorry for my bad english)

https://stackoverflow.com/questions/65556552/detect-collision-in-unity-3d-using-tags January 04, 2021 at 09:05AM

没有评论:

发表评论