
Assign the player, camera and path variables as the player character, main scene camera and your camera path respectively.Īnd now you’re done, the camera will follow the player through the scene while remaining on the path spline. This will control the camera in a way that we want. We don’t actually use the animator in this example.Ĭreate a new GameObject and attach the script CPEPlayerPathFollow.cs. Un-tick the Play at Start option in the Animator component. Just select and transform the points like you normally would. Next, it’s best to modify the control points in the Control Point mode so the curve goes where you want it to go. Keep creating and placing until you have all the points where you want them. Unity / Angry Bots Multiplayer - Photon PUN-based multiplayer top-down shooter project.


Unity / AuthoritativeMovementExample - Server authoritative movement project using Forge Networking for Unity. Then in Path Point mode, click on the Add Points to End of Path to add more to the end. UE4 / EpicSurvivalGame - 3rd-person multiplayer zombie survival game tutorial project. Next we need to lay out the path that our camera will take through the scene. We have this all set up already so all we need to do is get the camera to follow the player’s character along the camera path.Ĭreate a new Camera Path Animator instance in the scene. I’m using the Angry Bots demo from Unity Technologies as it also features a player controlled character that we can use. You’ll find an example scene in this asset and you can play it here.įirst we need a level to play with.

There are some bits of code to go through but it’s all quite easy, I promise!
#Play unity angry bots how to
This tutorial will show you how to make a third person camera with Camera Path Animator 3.0 like the kind used in the God of War series or Crash Bandicoot.
