Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: Franck 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.
-
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 :)
-
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.
-
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.
-
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 ;)