I've tried doing:
WorldTransform newTrans = entityManager.GetComponentData<WorldTransform>(ball);
newTrans.Position = targetPos;
newTrans.Rotation = targetRot;
entityManager.SetComponentData(ball, newTrans);
And also tried:
entityManager.SetComponentData(ball, new WorldTransform {Position = targetPos, Rotation = targetRot});
But both methods even if they don't throw errors they don't move the Ball.
Any ideas on how I should do it?
Thanks!