playMaker

Author Topic: Make character controller slide down terrain? (what action to use)  (Read 2320 times)

everycolorfades

  • Playmaker Newbie
  • *
  • Posts: 20
So I'm using raycast2 to get the ground normals, when x or z are too steep my character should slide down the terrain. I just don't have an action to do so - controller move doesn't seem to work; translate ignores collision if the speed is fast. What should I be using?

edit
just want to add that the only way I can see to use controller move for this is to get the players facing direction so i can move them towards the drop while simultaneously moving down.
« Last Edit: July 08, 2016, 01:30:26 PM by everycolorfades »

Zeldag

  • Full Member
  • ***
  • Posts: 198
Re: Make character controller slide down terrain? (what action to use)
« Reply #1 on: July 08, 2016, 03:14:32 PM »
Hi,

Would deactivating the character controller and activating the rigid body (if it is not active already) work?

Just if the character doesn't have a capsule collider, add it and activate it for the slide. Then reactivate everything. I think a capsule collider should just slide? I don't know if that is just a workaround, but hopefully it helps.

Good luck with it.


everycolorfades

  • Playmaker Newbie
  • *
  • Posts: 20
Re: Make character controller slide down terrain? (what action to use)
« Reply #2 on: July 08, 2016, 03:41:50 PM »
I'm not currently using a rigidbody but I'll give that a shot, thanks. I'm still kind of hoping for a cleaner solution though. ;)