Baked Lighting maps

This commit is contained in:
brausjonas
2023-02-05 21:06:31 +01:00
parent 59c7021388
commit b0ddf261f4
82 changed files with 8405 additions and 388 deletions
@@ -125,10 +125,12 @@ public class NoPlayablePlayer : Player
}
}
private Vector3 nextPoint;
//Bewegt den Player von einem Punkt(lastPos) zu einem anderen Punkt(moveTo) mit konstanter Geschwindigkeit
private void InterPolerate()
{
Vector3 nextPoint = Vector3.Lerp(lastPos, moveTo, interPol);
nextPoint = Vector3.Lerp(lastPos, moveTo, interPol);
transform.position = new Vector3(nextPoint.x, transform.position.y, nextPoint.z);
interPol += (Time.deltaTime * speed) / Mathf.Abs(Vector3.Distance(moveTo, lastPos));
}