Observered components about ragdoll player
The whole answer can be found below.
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).
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
@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