Fusion Network Transform Interpolation
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).
Fusion Network Transform Interpolation
Yosan
2022-03-25 13:11:50
I work on 3d character movement with the navmesh agent.
and I use network transform to sync all characters and I found.
if I use interpolation data source: auto
our character (has state authority) is small shaking
another character (not has state authority) is smooth
if I use interpolation data source: Not Use
own character (has state authority) is smooth
another character (not has state authority) is small shaking
can I achieve smoothness in both my own character and another character?
Comments
Hi @Yosan ,
Yes, you can modify the NetworkTransform
component in realtime to get the best result in both cases, just include the following code inside the Spawned
callback:
public override void Spawned()
{
//...
if (Object.HasStateAuthority)
{
GetComponent<NetworkTransform>().InterpolationDataSource = InterpolationDataSources.NoInterpolation;
}
}
And it should work as expected.
--
Ramon Melo
Photon Fusion Team
Thank you very much it work.
Back to top