playMaker

Author Topic: TPS Camera Collisions  (Read 291 times)

appTester4587

  • Playmaker Newbie
  • *
  • Posts: 17
    • View Profile
TPS Camera Collisions
« on: March 02, 2019, 03:14:03 PM »
Hello,

I have searched left and right for a tutorial that would cover this system but none is available for what I am looking for. I have the camera setup but I do not know how to setup Camera Collisions. I have tried Raycast/RaycastAll, store it and then to move camera forward but I was not successful. If anyone know a tutorial that I can watch/read please let me know.

Thanks!

Schleckenmiester

  • Playmaker Newbie
  • *
  • Posts: 6
    • View Profile
Re: TPS Camera Collisions
« Reply #1 on: March 02, 2019, 11:26:12 PM »
Sorry that this isn't an answer to your question but I too have this problem and would like to know.

appTester4587

  • Playmaker Newbie
  • *
  • Posts: 17
    • View Profile
Re: TPS Camera Collisions
« Reply #2 on: March 05, 2019, 05:40:59 AM »
Anyone?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 3934
    • View Profile
    • jinxtergames
Re: TPS Camera Collisions
« Reply #3 on: March 05, 2019, 09:52:30 AM »
Hi.
If you find some unity tutorials i can have a look if i can 'convert' it to playmaker.

Schleckenmiester

  • Playmaker Newbie
  • *
  • Posts: 6
    • View Profile
Re: TPS Camera Collisions
« Reply #4 on: March 05, 2019, 12:27:58 PM »
Quick search and I found this.

appTester4587

  • Playmaker Newbie
  • *
  • Posts: 17
    • View Profile
Re: TPS Camera Collisions
« Reply #5 on: March 05, 2019, 02:50:09 PM »
Hi.
If you find some unity tutorials i can have a look if i can 'convert' it to playmaker.

He has far more than just camera collision here:

https://www.youtube.com/watch?v=gN1BmP4ONSQ&list=PLfxIz_UlKk7IwrcF2zHixNtFmh0lznXow&index=4

But I find this the best so far and first time I got exposed to SphearCast instead of just simple RayCast.

If you can convert that to PM that would be sick.

Thanks!

appTester4587

  • Playmaker Newbie
  • *
  • Posts: 17
    • View Profile
Re: TPS Camera Collisions
« Reply #6 on: March 07, 2019, 05:26:37 AM »
djaydino, any update on this?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 3934
    • View Profile
    • jinxtergames
Re: TPS Camera Collisions
« Reply #7 on: March 07, 2019, 08:43:01 AM »
Hi.
Sorry, did not have time yet, but i did have a look at the video and i will try to make a video or action after the weekend.

bump again by Tuesday if i did not reply yet.

appTester4587

  • Playmaker Newbie
  • *
  • Posts: 17
    • View Profile
Re: TPS Camera Collisions
« Reply #8 on: March 07, 2019, 05:03:37 PM »
Hi.
Sorry, did not have time yet, but i did have a look at the video and i will try to make a video or action after the weekend.

bump again by Tuesday if i did not reply yet.

Sounds good.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 13891
  • Official Playmaker Support
    • View Profile
Re: TPS Camera Collisions
« Reply #9 on: March 11, 2019, 11:18:35 PM »
Hi,

 Camera collision is likely handled best with Cinemachine as it automates the process. https://forum.unity.com/threads/cinemachine-camera-collision.515626/

 what do you expect as a camera behavior should it collide with something?

Bye,

 Jean

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 3934
    • View Profile
    • jinxtergames
Re: TPS Camera Collisions
« Reply #10 on: March 12, 2019, 03:30: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.

appTester4587

  • Playmaker Newbie
  • *
  • Posts: 17
    • View Profile
Re: TPS Camera Collisions
« Reply #11 on: March 13, 2019, 08:12:43 AM »
Hi,

 Camera collision is likely handled best with Cinemachine as it automates the process. https://forum.unity.com/threads/cinemachine-camera-collision.515626/

 what do you expect as a camera behavior should it collide with something?

Bye,

 Jean

Cinemachine is not good for what I want it for.

appTester4587

  • Playmaker Newbie
  • *
  • Posts: 17
    • View Profile
Re: TPS Camera Collisions
« Reply #12 on: March 13, 2019, 08:21:35 AM »
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.

djaydino, from the import I can see those are C# scripts. I can do this in C# but I wanted to do this in PM only.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 3934
    • View Profile
    • jinxtergames
Re: TPS Camera Collisions
« Reply #13 on: March 13, 2019, 03:42:41 PM »
Hi.

Those are 2 actions, actions are build in c#

you can see that there is a scene also. open the scene to see the setup.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 3934
    • View Profile
    • jinxtergames
Re: TPS Camera Collisions
« Reply #14 on: March 17, 2019, 09:07:42 AM »
Hi.
Did you try the sample?