playMaker

Author Topic: The player goes to the ground when crouching[SOLVED]  (Read 1427 times)

Franck

  • Junior Playmaker
  • **
  • Posts: 91
The player goes to the ground when crouching[SOLVED]
« on: September 06, 2018, 08:22:31 AM »
Hello everyone,

I have been trying for several days to crouch my character without success.
When he crouches and gets up he stays stuck in the ground with his collider. I have not found anything on the internet that can explain how to solve this problem with Playmaker.
Do you have an idea?

Thank you in advance.
« Last Edit: September 10, 2018, 02:45:49 AM by djaydino »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: The player goes to the ground when crouching
« Reply #1 on: September 06, 2018, 12:00:24 PM »
Hi,
Can you give some more information on your setup (images/video)
As there can be many reasons depending on how you do the crouch and if you use a single or multiple colliders and so on :)

Franck

  • Junior Playmaker
  • **
  • Posts: 91
Re: The player goes to the ground when crouching
« Reply #2 on: September 06, 2018, 02:11:02 PM »
Hi djaydino,

thank you for your reply :)

I have only one collider, the one delivered with the RigidBodyFpsController.

I tried to crouch the character using the animations, reducing the height (from 1.8 to 1). When the animation starts, the character is reduced well and falls to the ground. But when getting up his collider enters the ground.

I also tried to go up the center in Y but the problem is that the character no longer touches the ground and slips on the air without being able to stop.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: The player goes to the ground when crouching
« Reply #3 on: September 08, 2018, 02:16:22 AM »
Hi.
The fps controller is not really made to use crouch and jump, so it is better to build Your own controller by using axis and velocity or translte or add force (depending on your setup/needs)

Then have 2 or more colliders (legs area, chest , head) so you can keep the level from the lowest collider and move the other ones down when crouching.

Franck

  • Junior Playmaker
  • **
  • Posts: 91
Re: The player goes to the ground when crouching
« Reply #4 on: September 09, 2018, 06:21:08 AM »
I finally decided to replace my RigidBodyFpsController.
I created my own character with a script and it works much better as well.
Thanks again djaydino you are great ;)