Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Camera Following a Moving Object in UNITY

A topic by Akshat Singh BCG created Apr 11, 2021 Views: 173
Viewing posts 1 to 1

CAMERA FOLLOWING AN OBJECTS MOVEMENT

Akshat Singh-20BCG10037

Nehal Pal-20BCG10070

Creating an object and Plane surface.

Codes for moving the object on the Plane created

 

 

Testing the object movement by looking at the X, Y, Z axis as the initial were (0,0,0)

Adding a script for Camera

 

 

 

 

 

 

 

Script for camera

 

 

 

 

 

 

 

Adding a smooth factor

Adding a look at target object to minimise the jitter

 

 

 

 

 

 

 

After adding the scripts: - movement of the object and the camera following the object.

 

 

 

 

 

 

 

 

Movement after adding some obstacles