简体   繁体   English

使用碰撞检测制作透明的3d对象

[英]Make transparent 3d object with collision detection

I am newbie in unity3d, I just want to make a square area which will should be transparent and when a object enter into that square area or touch that area then I should let know that some object enter or touch area. 我是unity3d的新手,我只想制作一个正方形区域,该区域应该是透明的,并且当一个对象进入该正方形区域或触摸该区域时,我应该让某个对象进入或触摸区域。 Kindly let me know or suggest me how can i do this task. 请让我知道或建议我该怎么做。 This will be great for me. 这对我来说太好了。 Thanks in advance. 提前致谢。

Box collider will work and if you just want to know when they enter click is trigger then in your script have the OnTriggerEnter function to handle your logic Box Collider可以工作,如果您只想知道何时输入click is trigger,那么在脚本中使用OnTriggerEnter函数来处理您的逻辑

here is a link for unity's colliders http://docs.unity3d.com/Documentation/ScriptReference/Collider.html 这是统一对撞机的链接http://docs.unity3d.com/Documentation/ScriptReference/Collider.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM