Syncing IK (AimIK)

I have setup an IK for the player model which works in client side. How do I sync it for other players to see. I know AdvancedTutorial already has an example of IK, but here I am using AimIK which comes from the FinalIK package.

Do I need to sync the bones transforms I added in AimIK? If so, then how? Like creating different states with Transform added for each bone?

My player movement and rotation are completely non-authoritative btw.


  • SpectraS7SpectraS7
    edited November 2018
    I fixed it!

    All I need was to sync the location of aim target of the aimIK on the network.
    I added a empty object called "LookAtTarget" as a child of camera singleton prefab which is spawned per player.

    Then I added a new Vector3 property in the Player state of bolt assets. In PlayerMotor (mine is non-authoritative) I sync the location of "LookAtTarget" to that Vector3 property.

    Later I added a new child object called "LookAtPrefab" to player prefab. Then I write the script which access the aimIK and change the location of "LookAtPrefab" according to the Vector3 property of player state and finally set "LookAtPrefab" as aim target of AimIK and done.

    Hope this will be useful to future readers.
  • Thank you Mate ...=)
    I literally almost overwrite my whole IK :D You saved some days for me.. I have thought everything... but the most obvious thing does not come into my mind :D
Sign In or Register to comment.