LOFTER for ipad —— 让兴趣,更有趣

点击下载 关闭
Unity-Physics.SphereCast(译为:球体投射
Zeiod 2022-05-21

Physcis.SphereCast

(译为:物理.球体投射)

例:

Physics.SphereCast(this.transform.position, 0.15f, dir, out hit, 0.2f)

Physcis.SphereCast(Vector3类型 球体扫描开始的中心,float类型 球体扫描的半径,Vector3类型 球体扫描的方向,RaycastHit类型 球体扫描碰撞的信息,float类型 球体扫描的最大距离)


推荐文章
评论(0)
分享到
转载我的主页