- Home /
CharacterController falls through or slips off moving platforms 2.0
Hi, I am using a script based on ThirdPersonController script, I tried to add the solution present on
but failed miserably, something worked but the character spawned in a place that wasnt the place I seted and he was sliding the platform. My original solution was to parent it to the platform, worked very well but I am afraid of the physical consequences of such act. Please, can you give me a hand? to improve the ThirdPersonController with that platform solution?
Sorry about my noobish and my terrible english!
You should add that you applied Jaaps approach.
that's not particularly more detailed... =/ where did you set the character to spawn? where is it spawning ins$$anonymous$$d? Did you copy the script in the other thread, did you type it down yourself or did you try to modify it? Did you add something? Do you get error-messages? how does the slipping work exactly?
Greetz, $$anonymous$$y.
I undoed it but did again with the same results
Well I have the counscience that I made things wrong here but well, the character must spawn at x102 y16 z95 and it spawns at x204 y-2 z176
When I find the platform it seems to work in some way but the character slides faster than platform speed and falls.
I just added the script, modified "mycontroller" variable (not a big deal) but I maybe it isnt appliable the way it is in the thirdpersoncontroller script because differences in the movement/jump logic (dont know if i am wrong)
Forgot to say, the character was considerable faster after apply the code.
Do you apply that code AND parent your character to the platform?
Well, DO you?? I'm sorry I don't have any other ideas what this might be... maybe you can call in @Jaap $$anonymous$$reijkamp since this is his script, but unfortunately he has not been seen here in over a month. You could try to reach him directly via his website...? (not sure if this is a proper approach but since he posted the link in his profile he can't complain :p ) Greetz, $$anonymous$$y.
Answer by hofcsaba · Dec 16, 2011 at 09:00 PM
partially managed to solved the issue. I had the same problem as you have. I rewrote the script from scratch. My script adds the difference vector of the platforms positions before,and after the movement. Then it moves the character controller with that vector. Unfortunately it only works if the platform is not moving fast, and got an X, or a Z axis movement as well(lol).
Answer by Fubiou · Dec 17, 2011 at 12:02 PM
I calculated the vector velocity of the platform and sent to the character to sum with the final movement if it is in touch, it doesnt work well if the platform is much fast because the frame calculation, it is working nice for me.
Your answer
Follow this Question
Related Questions
Keeping the player on a moving platform? 0 Answers
Make a Platform push a character controller? 2 Answers
What is the easiest way to push a character controller with a moving platform? 0 Answers
Moving platform clips through character controller 2 Answers
moving platform jumping and then continuing it's path 0 Answers