• Image
  • Image
  • Image
  • Image
  • Current Version: 2.1.4: 2023-02-01T13:55:31Z
  • First Published: 2015-05-29T19:59:38Z
  • Size: 42704
  • Supported Unity Versions: 2019.4.25
tools camera

Camera Collision Script

(56 Votes)
$7.97 $7.97

✔ Supports All Render Pipelines 2018.4.15+

Camera Collision Script
♦ This script prevents your camera from going through walls and avoids obstacles that block view of your player.
♦ MaskedTags and MaskedLayers parameters are available to include and exclude objects based on tag and layer.
♦ Simply drag and drop the FocusPoint prefab from the Prefabs folder onto your player, and center it above your player's head for instant use. The camera may be placed anywhere, including to the sides of your character for a more convenient view.
♦ If you are using a third party camera controller, simply attach the CameraCollision script to your camera and assign any necessary parameters in the inspector. See video demonstration of use with Game Creator Camera Motor.

Additional Notes:
♦ In the demo, we used a simple capsule character setup for player movement (movement script included), as well as the MouseLook script from the Standard Assets on both the player and the focus point for turning and angling the camera and player.
♦ Note, if your player is standing ever so close, or even inside of a wall the Camera Collision script will not be able to detect anything! When using a CharacterController a radius of 0.5 is recommended.

We do our best to make our assets as user-friendly as possible! Please, by all means, to not hesitate to send us an email, or leave a review, if you have any questions or comments!

Enjoy gaming! =)

Website
lylekgames.com
Support
lylekgames.com/contacts


Add to cart
This site contains affiliate links, which means that we can receive a commission if you click on a link and buy something that we have recommended.
Although clicking on these links will not cost you anything, they will help us finance our development projects while recommending good products!