0 votes
by (8.2k points)

Im very new to Unity and C# I have been trying to make my character climb on ladders for hours and tried Character Controller Component and  20+ diffrent scripts but nothing is working. I am putting the script on the Player around the ladder I even added a spirit behind the tiles where the ladders and put the collider around them but nothing the character just falls as well not able to climb the ladder it seemed not to work for me here is the ladder Images:

ago by
Как сам!
Твоя суперсила против стресса спрятана в дыхании. [url=https://net-tabletok.ru/tehnika-dyhaniya-dlya-uspokoeniya/]техника дыхания чтобы успокоиться[/url] Расскажу, как включить режим "все под контролем" одним только носом.
Написал: - https://net-tabletok.ru/tehnika-dyhaniya-dlya-uspokoeniya/
дыхание успокаивающее
техника успокоения
 
Пока!
ago by
Хай!
Дыши как профи: техники для крепких нервов. [url=https://net-tabletok.ru/tehnika-dyhaniya-dlya-uspokoeniya/]техника успокоения[/url] Научная база плюс личный опыт - получается убойная комбинация.
Переходи: - https://net-tabletok.ru/tehnika-dyhaniya-dlya-uspokoeniya/
техника успокоения
техника дыхания 4-7-8
 
Удачи!
ago by
online apotheke [url=https://gesunddirekt24.com/#]GesundDirekt24[/url] online apotheke preisvergleich
ago by
eu apotheke ohne rezept: <a href=" http://blaukraftde.com/# ">Blau Kraft</a> - ohne rezept apotheke
ago by
Здарова!
Блокчейн простым языком - от биткоина до NFT. [url=https://pro-kriptu.ru/chto-takoe-blokchejn-prostymi-slovami/]что такое блокчейн в криптовалюте[/url] Рассказываю как устроен цифровой мир будущего на понятных примерах.
Написал: - https://pro-kriptu.ru/chto-takoe-blokchejn-prostymi-slovami/
что такое блокчейн и как он работает
что такое blockchain
что такое блокчейн в криптовалюте
 
Покеда!

1 Answer

0 votes
by (8.2k points)

You need to check the gravity on your character rigidbody while climbing otherwise the gravity will always take your character down.

There's a few ways to accomplish this. 

  1. Destroy the rigidbody when you are on the ladder, and just have a ladder-traversal script that slides you up and down relative to the ladder's position, which would also take care of the ladder moving. Then when you get off the ladder, add the Rigidbody back on, with any custom values it might be using.
  2. You could use a Fixed Joint to attach to the ladder (ladder would need a rigidbody too obviously, one that is kinematic), and then drive the offset of the Fixed Joint to go up and down the ladder.
  3. Select the player in Inspector panel Search for Character Controller (OffSet) Increase the "Set Offset".

by
Artikel di <a href="https://slowstead.com/apartemen-di-bawah-500-juta-di-jabodetabek/" rel="nofollow">Vita Life</a> sangat membantu buat saya yang baru pertama kali beli properti.
by
Konten di <a href="https://gurunakal.com">gurunakal</a> asik buat dibaca kapan aja
TechXR runs courses in AR / VR / Metaverse / Game Development. Some of the popular Q&A in our courses are available here for easy discovery.

113 questions

117 answers

5.8k comments

137k users

...