playMaker
Home
Store
Showcase
Tutorials
Forums
Manual
Wiki
About Us
Playmaker Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Join our
Discord Channel
Home
Help
Search
Login
Register
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
(Moderator:
600
) »
Can't get Raycast2D to hit Collider Object
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Can't get Raycast2D to hit Collider Object (Read 3652 times)
kenmarold
Playmaker Newbie
Posts: 14
Can't get Raycast2D to hit Collider Object
«
on:
December 08, 2015, 07:37:50 PM »
I've hit a complete dead on on trying to use a ray cast to detect a collision. I want my character to climb a ladder and when he gets to the top I want him to be able to stand on top. The way I've tried to implement this is using a Box collider at the top of the object that get disabled when the character is climbing the ladder and his ray cast 2d intersects the box and then gets re-enabled once the ray is no longer touching but it's not working, but when the ray cast 2d hits the box collider it doesn't disable the collider. It's not interacting at all. I've attached my package file here is someone can spare a few moments to look at what I've done wrong. Many thanks!
My Unity Package can be grabbed here:
https://www.dropbox.com/s/v2cqqj3j1fe3jaq/ladderCollision.unitypackage?dl=0
Logged
jeanfabre
Administrator
Hero Member
Posts: 15500
Official Playmaker Support
Re: Can't get Raycast2D to hit Collider Object
«
Reply #1 on:
December 09, 2015, 02:13:18 PM »
Hi,
Have you properly set up the scene?
You need the 2d prefab, and the PlayMaker 2d proxy component on each 2d object you want collider2d to work.
Bye,
Jean
Logged
kenmarold
Playmaker Newbie
Posts: 14
Re: Can't get Raycast2D to hit Collider Object
«
Reply #2 on:
December 09, 2015, 04:22:26 PM »
So every object that I want to collide with needs these two things? what's the 2D prefab? Are there any tutorials or examples out there that might show how to implement this?
«
Last Edit: December 09, 2015, 06:23:11 PM by kenmarold
»
Logged
kenmarold
Playmaker Newbie
Posts: 14
Re: Can't get Raycast2D to hit Collider Object
«
Reply #3 on:
December 09, 2015, 08:21:42 PM »
I just can't seem to get this to work, does anyone have a really simple example they might be able to share with me?
Logged
PlaymakerNOOB
Full Member
Posts: 219
Re: Can't get Raycast2D to hit Collider Object
«
Reply #4 on:
December 10, 2015, 08:59:34 PM »
This youtube video should cover it for you.
//www.youtube.com/watch?v=puPZaPF1-wk
Though, you can read about it here here
https://hutonggames.fogbugz.com/default.asp?W1150
Though, make sure you follow instructions. Leaving out a step will cause it to not work.
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
(Moderator:
600
) »
Can't get Raycast2D to hit Collider Object