Hi,
I have animated sprites in one of my projects that exist in a 3D world. Since the user can move the camera around, I need to display the sprite from the appropriate angle relative to the camera <i>and</i> direction they are moving in.
I've looked at several sprite management solutions but haven't seen any that would help with this specific goal. Most of them are focused on atlas creation, animations and controlling the playback of those animations. If anyone knows of a solution that will manage changing atlases depending on camera/sprite-movement relativity, that's exactly what I need and I'd appreciate it if you could share the knowledge.
For the time being I'm trying to create an FSM to manage this for me. I thought to use the World To Screen Point action to get the position of the sprite, and set it's left or right atlas animation depending on what side of the screen it was on, while using the front or back atlases depending on if it were moving toward or away from the camera.
Provided no one knows of a sprite solution that I can grab off the asset store or from the Unify wiki, can anyone suggest how I might tackle this in FSM form?
Thanks!