playMaker

Author Topic: [SOLVED] Character controller collision issue  (Read 2354 times)

Pirelli

  • Playmaker Newbie
  • *
  • Posts: 4
[SOLVED] Character controller collision issue
« on: March 16, 2014, 03:55:17 PM »
Hi, I am trying to get a crouch button working in my first person game.

I'm using the Character Controller action to switch between crouched and standing, so a height of 0.5 for crouch and 2 for standing.

The issue occurs when I try to stand up, the player falls through the floor...

I've tried several different values and modifying the controller center value but they all seem to yield the same problem/

Any ideas why this might be happening? thank you.
« Last Edit: March 17, 2014, 10:16:55 PM by Pirelli »

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Character controller collision issue
« Reply #1 on: March 17, 2014, 12:29:31 PM »
It's happening because the collider scales from the center point. You'll probably need to move the character up enough to compensate for the rescale pushing the collider through the floor.

There are some Unity Answers threads on this topic as its a fairly common issue with controllers and crouching.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

Pirelli

  • Playmaker Newbie
  • *
  • Posts: 4
Re: [SOLVED] Character controller collision issue
« Reply #2 on: March 17, 2014, 10:17:25 PM »
Thank you LANE