Rotate camera if player is about to go out of its view?
How can i check if my character is inside my camera view or not ? so that i can move/rotate camera before its about to get out of its view? i only want to rotate camera if "character" is about to go out of view. not after it gets out of view?
Any clue would be very helpful. cuz i have no idea how can i do that..
No one answers because the answer is too simple and only requires math education. Get the rotation vector and rotate if the vectors mins/maxs are out of the desired bounds.
With blueprints its simply use the (Not Equal) node:
Here is my full blueprint which tells you if an actor is out of the camera's bounds:
Also you have to use the Set Control Rotation node to set the rotation or your character won't move? But it depends on your setup!
An another possbile solution is to use: ConvertWorldToScreenLocation
answered Apr 24 '15 at 06:13 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here