Having trouble having the camera follow my character along Spline Track

Hello all I am new to this (even posting on forums is a new thing to me) and would like some advice on how to handle a camera problem.


I am working on a game that has a pig running along a spline and need the camera to follow him facing the Y axis as he runs along so that the player has a nice side view. I would need the camera to rotate with the pig as to always be at his side. I got a good start on it but after setting up a spline ‘track’ the camera no longer follows the pig once it begins its loop around. Would greating a world camera to follow the pig be a better way to do this or should I find an alterative way to link the camera to the player controlled pig?

**Further note while testing the camera seems to be tied to the player start and doesnt follow the pig but around it. Seems I’ve got a long way to go to watch my piggy move. Any advice would be greatly appreciated!

I only can see that you’re setting the relative position of the mesh,which is a component of the character.
And the camera is also a component of the character.
While moving one of the components ,other components would definitely stay in place.

You could make the camera a child of the mesh

1 Like

Thank you, Im new to this (So new I didn’t know what the word “mesh” meant until a few days ago. This was what lead me to the answer. I appreciate your help!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.