I’m in the process of a First Person character controller implementation for an action game. The idea is to create a dynamic kinetic structure to handle the camera and movement of the player.
I’ve already got a simple implementation that handles movement under the player’s own power, I just haven’t written in behavior to handle external forces (The player being thrown), physics constrains (The player swinging from chains, etc), and the rotation of the head, neck, and back based upon where the player is looking.
I’m trying to figure out exactly how a few things in Unity work.
When I initialize my script, I have set up a few public properties. The character controller can be given a list of string paths to find the bones inside of the mesh that will be rotated by the mouse look vectors. What I’m wondering, is where Unity looks first using the Find command. If I have ten instances of the same object, all using the same prefab, will the script find object paths within the current object before other objects?
I’m also looking into the order in which objects are animated. I’m trying to figure out if my modifications to the bone rotations will apply before or after each frame of the animation that is currently being played (I’m calling them in FixedUpdate).
Can someone point me to somewhere I might find some answers on the subject? I know HOW to make everything work, I just don’t know the specifics of how Unity handles things, as this is my first day mucking around in Unity.