Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: appTester4587 on March 02, 2019, 05: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!
-
Sorry that this isn't an answer to your question but I too have this problem and would like to know.
-
Anyone?
-
Hi.
If you find some unity tutorials i can have a look if i can 'convert' it to playmaker.
-
Quick search and I found this. (https://www.youtube.com/watch?v=LbDQHv9z-F0)
-
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:
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!
-
djaydino, any update on this?
-
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.
-
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.
-
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
-
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,
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.
-
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.
-
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.
-
Hi.
Did you try the sample?
-
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! :)
-
Hi.
GetCameraClippingPlane and SphereCast2
-
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