How to lock camera Z-axes?
I am trying Side Scroller game. When player jump, camera also do jump. I don't want to do that.
I read some answers, and moved camera component between character mesh and spring arm. But its not working for me.
When I set Absolute Position then camera doesn't follow character.
How to lock camera?
asked Jun 01 '15 at 04:34 AM in Blueprint Scripting
Find somewhere in player code/blueprint vector operations like player_position + offset = camera_position. After that operation you need to get camera world position, set Z to some constant number, and then set camera world position with this vector. That's all.
I've just done something similar for a twin-stick shooter game I am working on. I want the spring arm and camera attached to the back of the player actor, however I want the camera to aways points towards positive X (north). I simply turned off "Inherit Yaw" in the Spring Arm properties and that did the trick:
answered Nov 29 '15 at 09:45 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here