Ghosts Added (Jumpscare Warning)

This is a very scary update which adds ghosts and ghost ais, next step would be to make it into a prefab (maybe?)
This commit is contained in:
Unknown
2022-02-25 21:41:56 -06:00
parent e4a4f7a108
commit 0d8b440f57
5 changed files with 277 additions and 1 deletions
+1
View File
@@ -43,6 +43,7 @@ public class ScriptRayHit : MonoBehaviour
offset += (rayAngle * rayLength) - (rayAngle * hit.distance);
//Debug.Log(hit.point);
}
Vector3 smoothedPos = Vector3.Lerp(transform.position, new Vector3(((target.position.x - offset.x)*rayLength), (target.position.y - offset.y)*smoothSpeed/5, -65f), smoothSpeed * Time.fixedDeltaTime);
float x = Mathf.Abs(target.position.x - smoothedPos.x);