How to get an entity to move to camera

Everything related to 3D programming
pfaber11
Enthusiast
Enthusiast
Posts: 145
Joined: Sat Apr 13, 2019 12:17 pm

How to get an entity to move to camera

Post by pfaber11 »

Well I want to make my entity move towards the camera . I have been trying with entity lookat and it does turn towards the camera but when I try to then move it along the z axis which to me means the direction the entity is facing , but no , yes it has turned to face me but does not travel towads the camera . Maybe it is that I'm not trying a method that can work. Any help would be good.