I've read a few posts regarding lerp and animation, but none seemingly fully answer my question - or I'm not reading into them correctly.
Lets say I have a box in a game. This box has a lid, and the only way it opens is via user interaction (eg. put aside physics if it were to hang upside down; a user presses 'E' and the box opens).
Now, I can achieve this one of two ways.
1) I animate the model of the box with an "Open" animation - the box lid rotating on it's X axis until the model constitutes an 'open' box; OR
2) I lerp the box lid from closed to open over time using rotation on it's X axis until again, the model constitutes an 'open' box.
Apart from the post here showing that:
...through script, MoveTowards method caused up to 0.10 ms latency while playing regular animation almost made no change. If there was anything it could be something between 0.1 and 0.3 ms.
Is there any reason why one would be preferred over the other? I personally would prefer to use Lerp as that way, I can make a generic 'Open' class that I can attach to the box lid, and then to a door, just changing the axis on which it pivots.
Any ideas, thoughts or explanations would be greatly appreciated.