Move an item back when approaching a wall

EVG

Member
UFPS 1 had a cool ability where when the player approached a wall, the object in his hands would move back. How can something like this be implemented in UFPS 3?
 
You'll need to create a new ability for this. Eventually I'd like to add a carry ability but haven't been able to yet.
 
This is a very useful ability when the character’s collider is not thick, and the object in his hands should not go beyond the wall (for example, a lantern in the player’s hands when going behind the wall incorrectly illuminates the environment).
 
The camera will render all first person objects last so they will always appear in front of the wall, but you're right in the case of a lantern the light could be behind the wall. I don't have an ETA on this but it should just be a matter of changing the First Person Objects transform location.
 
Top