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! Your search result can be found below. Plus, we offer support via these channels:

Try Our
Documentation

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

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.

Observered components about ragdoll player

XiannvYou
2018-01-03 09:00:20

Hi! I want make my player based on ragdoll(each part of the body are rigidbody), should i put all the parts of the body into the observered components to synchronize the player? Or there r better ways?

Comments

XiannvYou
2018-01-07 12:51:30

@Christian_Simon Help plz!! Orz

[Deleted User]
2018-01-09 10:54:25

Hi @XiannvYou,

I have honestly never thought about such a scenario, but I would start with a new script attached to the player which has a custom OnPhotonSerializeView solution. This script collects all necessary Rigidbody components from the child objects in its Awake function. In the OnPhotonSerializeView function you can try sending the necessary data from each Rigidbody component. Make sure to use the same order for the Rigidbody components for the sender and the receiver to avoid weird behaviours.

As said I don't know if this is working as expected but if you don't have any other idea you might want to give it a try. Please let me know if this somehow helps you.

Back to top