playMaker

Author Topic: Character Controller with box collision?  (Read 4660 times)

brisck1

  • Playmaker Newbie
  • *
  • Posts: 40
Character Controller with box collision?
« on: July 29, 2013, 10:26:42 AM »
So i've hit a bit of a snag when using the Character Controller to move my player around in my 2.5D game. The problem lies with the Character controller using a capsule collier, which is making my my player character go a bit crazy when it's on the edge of a platform (twitching and floating). I really need just a simple box collider on it instead of a capsule, but so far I've found no way to do it! Does anyone know if there is a solution to this?

Failing that I'm also experimenting with using a rigid body instead of a character controller and moving that around instead, but the problem is that I can't seem to find a solid way to move it around. The best option so far seems to be Translate, but it glitches/vibrates when colliding with walls. I tried Add Force, but I don like the way it slides around everywhere and accelerates.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15620
  • Official Playmaker Support
Re: Character Controller with box collision?
« Reply #1 on: July 29, 2013, 10:42:13 AM »
Hi,

 I think you should keep trying with the capsule, and find out exactly why it behaves strangely. for example, can isolate the player ina  simple scene, and then see how it performs, maybe your props colliders are not set up properly. Play with physics material values to make them completly smooth and "icy" this is maybe the issue here. Capsule collider is used in most games, so it's definitly something to keep working on to get it right.

also, have you studied frameworks? there are a lot fo stuff on 2.5d type of game on the asset store.


bye,

 Jean

brisck1

  • Playmaker Newbie
  • *
  • Posts: 40
Re: Character Controller with box collision?
« Reply #2 on: July 29, 2013, 10:58:37 AM »
Hi Jean,

I found a video which illustrates my problem with having a capsule collider on the Character Controller:


As you can see it doesn't play nicely with the edges of platforms or slopes. I could try a physics material but I thought that was for rigid body stuff only?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15620
  • Official Playmaker Support
Re: Character Controller with box collision?
« Reply #3 on: July 30, 2013, 06:20:04 AM »
Hi,

 obviously, it's not the collider, it's your 2d framework that doesn't do the job properly. as the player shakes, you clearly see that the collider doesn't. So I suspect you have a problem of collider definition within your animation definition.

could you tell me more about what you use for the animation itself?

bye,

 Jean