www.9529.net > rAyCAsthit.point

rAyCAsthit.point

你有给m_layer指定碰撞层么? 工具栏Edit->project setting->tags里面指定碰撞层然后添加到player的Layer属性里

Vector3 A =new Vector3(hit.point.x,hit.collider.gameObject.transform.position.y,hit.point.z); pointerObj.transform.position=A;

网站地图

All rights reserved Powered by www.9529.net

copyright ©right 2010-2021。
www.9529.net内容来自网络,如有侵犯请联系客服。zhit325@qq.com