Class PhysicsObjectSyncer
- Namespace
- DefaultNamespace
- Assembly
- Assembly-CSharp.dll
public class PhysicsObjectSyncer : MonoBehaviour, IPunObservable
- Inheritance
-
PhysicsObjectSyncer
- Implements
-
IPunObservable
- Inherited Members
-
- Extension Methods
-
Constructors
PhysicsObjectSyncer()
public PhysicsObjectSyncer()
Fields
m_firstRead
Field Value
- bool
m_lastTickRead
public float m_lastTickRead
Field Value
- float
m_newPos
Field Value
- Vector3
m_newRot
public Quaternion m_newRot
Field Value
- Quaternion
m_oldPos
Field Value
- Vector3
m_oldRot
public Quaternion m_oldRot
Field Value
- Quaternion
m_photonView
public PhotonView m_photonView
Field Value
- PhotonView
m_rigidbody
public Rigidbody m_rigidbody
Field Value
- Rigidbody
m_tickTime
Field Value
- float
Methods
Awake()
OnPhotonSerializeView(PhotonStream, PhotonMessageInfo)
public void OnPhotonSerializeView(PhotonStream stream, PhotonMessageInfo info)
Parameters
stream
PhotonStream
info
PhotonMessageInfo
SetInitialPos(Vector3, Quaternion)
public void SetInitialPos(Vector3 pos, Quaternion rot)
Parameters
pos
Vector3
rot
Quaternion
Update()