playMaker

Author Topic: Best practice for using Raycast in Camera collision?  (Read 541 times)

spicyasian128

  • Playmaker Newbie
  • *
  • Posts: 18
    • View Profile
Best practice for using Raycast in Camera collision?
« on: August 17, 2018, 08:45:40 PM »
I'm trying to set up a collision system for my 3rd person camera right now, and to do so I've got it set up to be detected by a raycast, but at this point I'm wondering what the best way to go about actually moving the camera is. I tried having the camera move towards a point on my players head based on the hit distance, but that gave me some difficulties with getting the ray to come back out after it has gone in. Is there a better way for me to go about this without needing to download external addons, or is there a specific way I should be going about using the move towards function in this instance?