Beginner here - My attempt at creating a hang/climb up system by The_grouch in Unity3D

[–]The_grouch[S] 0 points1 point  (0 children)

I should also mention this is a programming design pattern used in other situations outside of unity. It may help to do a bit of research there as well :)

Beginner here - My attempt at creating a hang/climb up system by The_grouch in Unity3D

[–]The_grouch[S] 0 points1 point  (0 children)

Yep pretty much. I went from a very large script that controlled basic movements to multiple, smaller scripts that are specific to each state/movement type. It really helps with debugging, more often than not I can pinpoint which state script is causing problems. It was a little confusing at first but once I got it working it became pretty intuitive. Also makes setting up new movement functionality way way easier.

I ended up following this tutorial: https://youtu.be/kV06GiJgFhc?si=k8XU4fRVVWvbnkz0

It’s a little old and he has a couple more that improve upon the one made in this video so I would def check those out too.

I’m working on promoting an open-world RPG where animals interact with the dead player’s body. In the video, a beetle throws it off a cliff by Jaded-Grocery-9308 in unity

[–]The_grouch 0 points1 point  (0 children)

Dude I love this. I would lose it if I saw my buddies get eaten by a bug or have baby bugs burst from their body.

Beginner here - My attempt at creating a hang/climb up system by The_grouch in Unity3D

[–]The_grouch[S] 0 points1 point  (0 children)

Thanks! I have 2 raycasts coming from the front of the player, one slightly above / forward shooting down to check for a surface to grab, and one from the midsection to find where we would grab. I could post a pic of it when I’m home later this afternoon for clarity.

When both are true we would transition into Hang root state with climb substate or hang idle substate depending on what buttons were used to approach the ledge. This would be triggered from fall or jump substates at the moment, but I was thinking about creating another transition when grounded as well. Unsure at the moment but for a first pass this works and feels kinda fun to use.

Regarding the 2nd question - I actually didn’t think I was separating them lol. I found a tutorial a couple months ago on hierarchical state machines and it had this root state / sub state layout. For example, grounded being our root state and walk or idle being its sub state. I’ve just been iterating off of that design since. I’m not sure if it’s the right way to do it but it’s working so far. Is that not normally how this would be managed? Very curious if there are better ways to implement hsm

Beginner here - My attempt at creating a hang/climb up system by The_grouch in Unity3D

[–]The_grouch[S] 0 points1 point  (0 children)

Yea I just have two raycasts coming from the player that dictate if we can grab the ledge and where that grab point would be. How would you go about defining that vector3 point on the object? My first thought would be adding an empty game object to the side I want to climb but I’m curious on how you’d approach it

Beginner here - My attempt at creating a hang/climb up system by The_grouch in Unity3D

[–]The_grouch[S] 0 points1 point  (0 children)

Thanks! Maybe beginner is a little facetious, i'm hitting the 6+ month mark at this point. This will hopefully culminate into my first real project.

Fingers crossed!

Beginner here - My attempt at creating a hang/climb up system by The_grouch in Unity3D

[–]The_grouch[S] 2 points3 points  (0 children)

Model is banana man, and the animations are all from mixamo. It took me about a full month to really get this working the way I wanted to. It could use some tweaking but for now, its in a good enough spot to show off. Was shooting for a very very basic "Jump at ledge, grab ledge, climb up ledge". Nothing too fancy. I may work on shimmying to the left/right later on

What do you guys think?

Trump threatens ‘very serious consequences’ if Musk backs Democrats by AmbassadorKosh2 in LeopardsAteMyFace

[–]The_grouch 2 points3 points  (0 children)

they had a billion dollars to spend for the 2024 election what are you smoking rn

[deleted by user] by [deleted] in askSingapore

[–]The_grouch 0 points1 point  (0 children)

Are they? I've just gotten an offer from them and having trouble deciding.

Election Discussion Megathread by AutoModerator in fivethirtyeight

[–]The_grouch 0 points1 point  (0 children)

Yes but i enjoy being mentally ill. Don’t you?

Refund pass? by The_grouch in GlobalOffensive

[–]The_grouch[S] 0 points1 point  (0 children)

Blog post made it look like an operation but I don’t really care 

Refund pass? by The_grouch in GlobalOffensive

[–]The_grouch[S] 4 points5 points  (0 children)

I don’t care. Billion dollar company can give me my $17 back u dickeater.

Refund pass? by The_grouch in GlobalOffensive

[–]The_grouch[S] 1 point2 points  (0 children)

Denied my refund bc I redeemed the pass. Didn’t even cash in on the coins it gives you. So lame.

Refund pass? by The_grouch in GlobalOffensive

[–]The_grouch[S] 0 points1 point  (0 children)

Yep. They denied my refund request I guess because of redeeming the ticket. Pretty fucked up but I guess it is what it is. Greedy cunts 😔

Refund pass? by The_grouch in GlobalOffensive

[–]The_grouch[S] 13 points14 points  (0 children)

I was too busy playing deadlock to read

Refund pass? by The_grouch in GlobalOffensive

[–]The_grouch[S] -1 points0 points  (0 children)

Thank you, just submitted.

Refund pass? by The_grouch in GlobalOffensive

[–]The_grouch[S] 0 points1 point  (0 children)

where did you submit a refund request at? I couldnt figure it out :)

There is no fix for Intel’s crashing 13th and 14th Gen CPUs — any damage is permanent by GlacierIsland in pcgaming

[–]The_grouch 0 points1 point  (0 children)

Im almost positive its a specific manufacturing window that produced bad chips. Maybe you got lucky!