Manipulating the transform of a NetworkTransform object
The whole answer can be found below.
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).
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
Hi Isaac, yes, that was my problem! Thank you.
Back to top