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: 107 Replies: 1
This topic is archived. It is unlisted and no new posts can be made.
Viewing posts 1 to 3

Link for Tutorial (PDF)

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 minimize the jitter

 

 

 

 

 

 

 

 

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

 

 

 

 

 

 

 

 

 

Movement after adding some obstacles

 

 

 

 

 

Moderator

You seem to have made a duplicate of this topic, this one will be archived in favor of the other topic.

Moderator archived this topic