diff --git a/Assets/Scripts/Entity.cs b/Assets/Scripts/Entity.cs index a1aaa4d..de73b9d 100644 --- a/Assets/Scripts/Entity.cs +++ b/Assets/Scripts/Entity.cs @@ -51,10 +51,10 @@ public class Entity : MonoBehaviour } protected virtual void MoveToTarget(){ - + //Would be nice if we could force this to be in FixedUpdate direction = Vector3.RotateTowards(direction, (target.position - transform.position), rotSpeed*Time.fixedDeltaTime, 0.0f); if(!IsInAttackRange()){ - rb.MovePosition(transform.position + direction * movementSpeed * deltaTime); + rb.MovePosition(transform.position + direction * movementSpeed * Time.fixedDeltaTime); } }