mirror of
https://github.com/frizbee19/FebGameJam.git
synced 2026-09-11 08:17:01 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user