Skip to content
This repository has been archived by the owner on Feb 13, 2018. It is now read-only.

Trigger collisions #24

Open
hudecv opened this issue Apr 17, 2016 · 2 comments
Open

Trigger collisions #24

hudecv opened this issue Apr 17, 2016 · 2 comments

Comments

@hudecv
Copy link

hudecv commented Apr 17, 2016

Hey dude, the character controller is really great stuff, but currently there is no trigger detection. My character uses triggers in the world to run interactions and scripts, but without trigger detection, it's a no go for me. Do you plan on adding trigger detection?

@IronWarrior
Copy link
Owner

Hey hudecv,
At line 341, you'll see:

if (col.isTrigger)
                    continue;

Deleting this will allow it to be pushed back against triggers. In the next update I'll add an option to choose whether triggers should be considered or not. Thanks for the comment,
Erik

@hudecv
Copy link
Author

hudecv commented Apr 18, 2016

Oh, I didn't see that. I've made a workaround for it, along with a couple of edits to make the character movement work with my mouse look system. It's really great plugin. May I ask why you need to set the Walkable attribute on the controller? Why not detect this through the physics layers?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants