Unity Physics2D.OverlapPointAll
来源:互联网 发布:egd网络小黄金骗局 编辑:程序博客网 时间:2024/06/14 06:37
描述
此函数用于检测2D场景中某个位置(Vector2 point)处所有的碰撞体
返回值
Collider2D[] :
参数
point 被检测的场景中的点
layerMask 在指定的层中检查对象
minDepth 最小深度(z轴)
maxDepth 最大深度
案例
检测鼠标点击到哪些物体:
Collider2D[] col = Physics2D.OverlapPointAll(Camera.main.ScreenToWorldPoint(Input.mousePosition));
0 0
- Unity Physics2D.OverlapPointAll
- Unity Physics2D.OverlapPoint 重叠点
- 关于Physics2D
- Physics2D.Linecast
- Physics2D.Raycast 光线投射
- Physics2D.Linecast的使用注意事项
- Physics2D 检测圆形区域内的所有碰撞器
- 火箭耗子 5.1 AddForce 加前进的速度 设置离子的层 Physics2D.OverlapCircleAll
- unity
- Unity
- unity
- Unity
- Unity
- Unity
- Unity-----
- unity
- Unity
- unity
- footer完美到底(二)
- UVA - 242 线性DP
- java发送邮件
- Nginx、Apache 域名301跳转
- 14. Longest Common Prefix\441. Arranging Coins\367. Valid Perfect Square
- Unity Physics2D.OverlapPointAll
- Codeforces Round #398 (Div. 2) C. Garland
- Notepad++ 插件整理
- Bullet 物理引擎学习笔记(1) -- HelloWorld 详解
- Jetty之SocketEndPoint分析
- RxJava笔记--02(Android中使用RxAndroid)
- 详解 Spotlight on Unix 监控Linux服务器
- ajax_ajax从json数据中取其中某一值,输出未定义
- Android自定义网络加载中对话框