Unity Ledge Grab Tutorial - part 3

Поділитися
Вставка
  • Опубліковано 20 сер 2024
  • This is the last part of the ledge grab tutorial using the Unity 3D Game Kit. I will add more to the ledge grab series later. In the next video, I will use my own controller script, but the implementation will be the same. I will try to make the video as short as possible, as usual.
    / brok3ncircuitproject

КОМЕНТАРІ • 6

  • @tomascampo2283
    @tomascampo2283 Місяць тому

    I wanted to thank you for doing this tutorial! I got it working perfectly, and i added two child objects on the ledge detection collider (wich was on a gameobject of his own) for IK hands and just used the OnLedge bool to handle the weight of the rig. I also run into a very nasty bug with the wallTarget raycast, becouse it reacts to everything, and when i was shot at (my game have enemies with bullets) it would get crazy. If anyone else run into this problem, you can select layers to wich the raycast don't react, and i put it on the LerpToLedge function, and it looked like this :
    private void FacingWall()
    {
    RaycastHit hit;
    int layerMask = 1

  • @eric_brito
    @eric_brito 3 місяці тому +1

    Interesting. I was studying Eric Canela's parkour asset. So I decided to just look for an action without IK, to reduce complexity. Your approach was easy to understand, although GameKit made it a little difficult. Probably to add other actions such as "prevent the player from falling" or "fall and grab the edge" it will be more appropriate to get rid of the trigger and just use raycasts and more specific tags on the objects. Either way, these interactions are complex but generate great mechanics.

    • @Brokencircuitboard
      @Brokencircuitboard  3 місяці тому +1

      I use trigger instead of raycast since it simpler. Using raycast work wonder for basic ledge grab like this, but as the mechanic grow in complexity, it tend to create undesirable bugs down the road.

    • @eric_brito
      @eric_brito 3 місяці тому

      @@Brokencircuitboard I imagined. But as I'm more familiar with raycasts and triggers, but not with IK, this was useful to understand the basis of the thing. I'm going to try to gradually increase the difficulty, and then do it without a trigger and then with IK.

  • @tomascampo2283
    @tomascampo2283 Місяць тому

    Ok, so i see that we still have to create colliders with Tags for every place we want to ledge. Correct me if i'm wrong, becouse I can instantiate the sphere with no problem, but i still only ledge on where i put the "ledge" tag.