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
amoxicillin online canada <a href=" https://maps.google.com.ly/url?sa=t&url=https://amoxdirectusa.com ">amoxicillin 500 mg tablet</a> or buy amoxicillin canada <a href=" https://www.e-learningadda.com/user/bqdlvfmjmk/?um_action=edit ">amoxicillin no prescipion</a>
http://www.google.com.fj/url?q=https://amoxdirectusa.com amoxicillin over counter or https://vedicnutraceuticals-uk.com/user/atokdwjkoi/?um_action=edit amoxicillin buy no prescription
[url=https://raptor.qub.ac.uk/genericInstruction.php?&suborg=qub&resourceId=41&url=https://amoxdirectusa.com]amoxicillin 500 mg online[/url] where can i get amoxicillin 500 mg or [url=https://cv.devat.net/user/fzcellyufm/?um_action=edit]amoxicillin 500 mg without prescription[/url] amoxicillin generic
ago by
tadalafil soft gel capsule [url=http://everlastrx.com/#]safe online pharmacy for ED pills[/url] safe online pharmacy for ED pills
ago by
Stromectol ivermectin tablets for humans USA: <a href=" https://medivermonline.shop/# ">generic ivermectin online pharmacy</a> - trusted Stromectol source online
ago by
ago by
NeuroCare Direct: <a href=" https://neurocaredirect.shop/# ">generic gabapentin pharmacy USA</a> - Neurontin online without prescription USA

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

118 answers

8.1k comments

139k users

...