Fixed update is not being called! I don’t understand nothing prints at all!
public static Transform CurrentlySelectedObject;
private bool Moving = false;
private void FixedUpdate()
{
Debug.Log("Moving :" + Moving);
if (Moving == true && CurrentlySelectedObject != null)
{
Rigidbody2D Rb = CurrentlySelectedObject.GetComponent<Rigidbody2D>();
Vector2 direction = (Vector2)CurrentlySelectedObject.position - mousePosition;
direction.Normalize();
Rb.MovePosition(Rb.position + direction * Time.fixedDeltaTime * 100);
Debug.Log(Rb.position + " " + direction);
}
}