unity3d - How to let a camera follow a rolling ball with photon in unity -


i created multiplayer game photon in unity. player rolling ball, want set camera each player can't child of ball otherwise rotates to. without photon worked script on camera multiplayer camera doesn't follow rolling ball. how can fix it?

you need create script , add camera.

public gameobject player = gameobject.find("player");  this.transform.position = new vector3(player.transform.position.x, player.transform.position.y, transform.position.z); 

so player in center of camera.


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -