- Home /
Character jumping very high for no reason
Hi, My Character is jumping like mad what the problem. I have attached a video to it please have a look at it.
as you can see after 23 second on the video there is a water fall which is unity's own. over there i was showing you that when i look on the side i can see the whole part of the water fall coming downwards. As i change my point of view of the camera to centre the water fall get half hahaha. Its funny but what is it ? The video is here thank you
Answer by YukariYakumo · Oct 22, 2012 at 07:04 AM
I think u should make your own controller from scratch
Answer by aldonaletto · Oct 21, 2012 at 12:43 AM
The First Person Controller has a moving platform feature that causes weird and exagerated movements under certain conditions. Try to disable Moving Platform in the component Character Motor in the Inspector.
yes but the moving platform is the main thing in the project, if moving platform is not there my game is dead
Try to disable it just to check if this is the cause. If it is, there are other alternatives to implement moving platforms - take a look at this article, for instance: http://hanfordlemoore.com/v/creating-elevators-in-unity
Thank you for the answer people your answers did not solve my problem. I think its unity engines Bug. I am sure.
Actually, it's a Character$$anonymous$$otor.js bug. Character$$anonymous$$otor is the script that controls the First Person prefab, and it includes the moving platform code. Unfortunately, this script is incredibly complex - times ago I tried but could not fix the bug.
I developed my own code: the platform had a trigger volume, and the player was childed to the platform in OnTriggerEnter and unchilded in OnTriggerExit. There's a trick to avoid object distortion when it enters the platform: the platform must be an empty object with scale (1,1,1) - add a box collider to it, set Is Trigger and adjust its dimensions and position, then child a cube scaled to the platform dimensions (the model).
i still dont get the last part: 'the platform must be an empty object with scale (1,1,1) - add a box collider to it, set Is Trigger and adjust its dimensions and position, then child a cube scaled to the platform dimensions (the model).' and what about the waterfall i was showing in the video ?
Answer by Kyllan · Oct 21, 2012 at 12:15 AM
Could you give us the code you're using to apply the force for jumping please?