Add force on a networked object doesn't work

Options
Hi, I need help on adding force on a networked object, The object has a rigibody view on it and is attached to the photon view.
The scenario is when Object A has collided with object B, I add force on object B in the OnCollisionEnter, I do check
object B's photon view isMine() is true before adding the force, thus only added the force locally. Both the local client and the other client shows the force is not added.

Comments

  • L3sc
    Options
    Did you attach rigidbody view into the observed field on the photon view?
  • slacker
    Options
    yes
  • L3sc
    Options
    I don't know what is wrong with your setup but other way to what you want to do is send RPC to other client and apply force locally. Your force direction and speed are known then this solution could be useful.