Make the Camera Look at a Ball

I have been trying for 6 hours and 50 minuites as of now to get the spacebar to toggle between the camera looking at the car from the back and the camera looking at the ball, but still on the car. Similar to in rocket league if you have ever played it. I have looked everywhere. Someone please help me, otherwise I have wasted an entire snow day :(.\

Unreal just crashed again so I will get the screenshots if needed

Try the FindLookAtRotation Node.

Start would be your Camera Location and Target would be the Ball, then apply that rotation to the Camera at a consistent rate to follow the Target.

1 Like

I have a spring arm (does that make a difference?) and this is what I have

This is what I have in the level blueprint

You need to take your Cameras location, not the location of your SpringArm.

1 Like

Not working, camera seems to snap to ball location, but if the ball is moved then it gets doesn’t update. The ball is an actor/static mesh. Should I change that and what to;

This is the setup i used to simply make the camera follow a Ball.

If you want a video demonstration as well, i can upload it in action. But i suggest you attempt to replicate this yourself following how i did it above.

2 Likes

Didn’t work, I am using a vehicle and I want the camera to face the ball but the car shouldn’t turn. The ball is an actor

Well instead of setting ControlRotation, set the WorldRotation of your Camera.

1 Like

Hahahahahahahahhaaha, this is more like it. we need more updates.