赞
踩
记录记录记录
float direction = transform.localScale.y;
Vector2 grabDir = new Vector2(0f, direction);
float direction2 = transform.localScale.x;
Vector2 grabDirx = new Vector2(direction2, 0f);
RaycastHit2D qbodys = Raycast(new Vector2(-0.4f, 0.1f), grabDirx, 0.32f, layer);
RaycastHit2D hbodys = Raycast(new Vector2(0.4f, 0.1f), grabDirx2, 0.32f, layer);
如此就可以进行末端检测,我也不知道为啥
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。