路线产生逻辑微调

This commit is contained in:
lishuo committed 2021-04-15 17:09:35 +08:00
1 parent 62938ec6ae
commit 92e43c2cd8
21 files changed
+3375 -1829

No files matched your search

@@ -129,7 +129,7 @@ namespace Assets.Scenes.Ride.Scripts
Vector3 viewPos = Camera.main.WorldToViewportPoint(position);
Vector3 dir = (position - camreatra.localPosition).normalized;
float dot = Vector3.Dot(camreatra.forward, dir);
if (dot > -1 && viewPos.x >= -1 && viewPos.x <= 2 && viewPos.y >= -1 && viewPos.y <= 2)
if (dot > -0.1 && viewPos.x >= -0.1 && viewPos.x <= 1.1 && viewPos.y >= -0.1 && viewPos.y <= 1.1)
{
return true;
}