playMaker

Author Topic: Camera penetrating wall problem  (Read 1422 times)

IIKII

  • Full Member
  • ***
  • Posts: 137
  • Lonely developer
    • Patreon
Camera penetrating wall problem
« on: May 18, 2017, 09:48:48 AM »
Hi, my game is a third person game in a tightly closed indoor area. My camera will often reaches the wall and when it collide with the wall, it will move forward towards the player. The problem is that sometimes the collision between the wall and camera happens too fast and it didn't detect the collision, thus the camera went through the wall.

Is there any 100% successful method to preventing the camera from penetrating past wall?
Support me on Patreon for free adventure games and development insights - https://www.patreon.com/koexstudio

Phuzz

  • Full Member
  • ***
  • Posts: 101
    • Bzilla Games
Re: Camera penetrating wall problem
« Reply #1 on: May 19, 2017, 05:14:53 AM »
Try and change the collision detection on the camera collider to "continuous"
Bzilla Games "Education with a Tickle!"
Qbucket Games "Voxel Games"