Manipulating the transform of a NetworkTransform object

The whole answer can be found below.

Please note: The Photon forum is closed permanently. After many dedicated years of service we have made the decision to retire our forum and switch to read-only: we've saved the best to last! And we offer you support through these channels:

Try Our
Documentation

Please check if you can find an answer in our extensive documentation on Fusion.

Join Us
on Discord

Meet and talk to our staff and the entire Photon-Community via Discord.

Read More on
Stack Overflow

Find more information on Stack Overflow (for Circle members only).

Write Us
an E-Mail

Feel free to send your question directly to our developers.

Manipulating the transform of a NetworkTransform object

mertb
2022-06-07 06:46:55

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.

Comments

Isaac_Augusto
2022-06-17 18:56:49

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
2022-06-29 01:26:19

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

Back to top