Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Easy way for FPS Camera Collision Detection.

Discussion in 'Scripting' started by CoffeeConundrum, Jan 7, 2014.

  1. CoffeeConundrum

    CoffeeConundrum

    Joined:
    Dec 30, 2013
    Posts:
    46
    Hey guys,
    I've been trying to get some collision detection between a camera and my game objects which essentially is a room made up of a number of cubes to create the four walls and a floor, with an additional cube in the middle of the room.

    I've currently got the MouseLook script attached to the Camera and I'm not sure where to go from there as I've tried using the rigidbody and colliders in various ways with no results.

    This has probably been asked a million times but I'm a bit baffled on where to even begin!