Manipulating the transform of a NetworkTransform object

Options

Hi all,

I'm trying to implement movement with DOTween on an object with a NetworkTransform component. I want to manipulate it's position and rotation from the host client with StateAuthority and InputAuthority, but it doesn't seem to work - the movement is not applied to the object.

Simply setting transform.position also doesn't seem to work, even with authority.

I'm manipulating these objects outside of their own classes - I have a complex building tool. I found NetworkTransform.WritePosition, but this of course doesn't have room for tweening.

With PUN, I could easily set transform.position and transform.rotation as long as photonView.IsMine == true. I'm looking for something similar in Fusion. Any help will be much appreciated.

Best Answer

  • Isaac_Augusto
    Answer ✓
    Options

    Hi, sorry for the late response.

    The InterpolationTarget of the NetworkTransform is set to another object rather than the parent object itself?

    -----

    Isaac Augusto

    Photon Fusion team

Answers

  • Isaac_Augusto
    Answer ✓
    Options

    Hi, sorry for the late response.

    The InterpolationTarget of the NetworkTransform is set to another object rather than the parent object itself?

    -----

    Isaac Augusto

    Photon Fusion team

  • mertb
    Options

    Hi Isaac, yes, that was my problem! Thank you.