playMaker

Author Topic: Camera going through wall  (Read 1090 times)

IIKII

  • Full Member
  • ***
  • Posts: 137
  • Lonely developer
    • Patreon
Camera going through wall
« on: January 15, 2020, 11:52:25 PM »
Hi, I use raycast 2 on my camera to check for walls but it is not perfect when I move the camera really fast and it will past through the wall.

What are the solutions to make a wall-proof camera?
Support me on Patreon for free adventure games and development insights - https://www.patreon.com/koexstudio

colpolstudios

  • Sr. Member
  • ****
  • Posts: 370
Re: Camera going through wall
« Reply #1 on: January 16, 2020, 11:47:47 AM »
Im not sure but this may be of some help.

https://www.youtube.com/watch?v=LbDQHv9z-F0

IIKII

  • Full Member
  • ***
  • Posts: 137
  • Lonely developer
    • Patreon
Re: Camera going through wall
« Reply #2 on: January 24, 2020, 09:49:58 PM »
Thanks, yeah I tried using linecast and it seems to help a little better but there seems to be no way to create a wall proof camera if I purposefully swing the camera really fast.

Update: I made a mistake in the position of the camera which caused it to move through the wall. Maybe I need to re-do the whole thing.
« Last Edit: January 25, 2020, 09:07:06 PM by IIKII »
Support me on Patreon for free adventure games and development insights - https://www.patreon.com/koexstudio