playMaker

Author Topic: TPS Camera Collisions  (Read 4758 times)

Odd_But_Awesome

  • Playmaker Newbie
  • *
  • Posts: 22
    • Odd but Awesome
Re: TPS Camera Collisions
« Reply #15 on: April 23, 2019, 11:25:28 PM »
Hi.

i made 2 actions for it to work properly and i have setup a sample scene.
you can get it from the package below.

Let me know if it works.

Edit : Removed the package due to lack of interest... actions will be available on the Ecosystem



Hi there,

@djaydino

What is the name of these actions please? Or link to package.

I am currently struggling with a 3rd person Playmaker camera collision issue. Zoom in/out works but at closest point camera jutters.

Thanks! :)
Check out my games & VR Cardboard titles at https://oddbutawesome.weebly.com/apps-new.html

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7614
    • jinxtergames
Re: TPS Camera Collisions
« Reply #16 on: April 28, 2019, 10:08:18 AM »
Hi.

GetCameraClippingPlane and SphereCast2

drakwon

  • Playmaker Newbie
  • *
  • Posts: 34
Re: TPS Camera Collisions
« Reply #17 on: September 08, 2019, 12:38:57 PM »
I have an easy solution for this with no extra actions needed.

Step 1. Create a box collider right under your camera.

Step 2. Add an FSM to the box collider,  set it to trigger when it collides with the terrain

Step 3. Create a variable for your mouse Y Sens and when the box triggers have it set your mouse Y sens to 0

Step 3. Get your mouse Y axis input, compare the float, if its greater send to to another event that sets your sens back to normal.

If your terrain isnt flat, use a raycast to detect the position of the terrain and set your cameras y position to that and it will follow the terrain level



you wont get any bouncing camera effects with this method
« Last Edit: September 08, 2019, 12:43:43 PM by drakwon »