Grab and Throw Objects with Playmaker

Поделиться
HTML-код
  • Опубликовано: 21 окт 2024

Комментарии • 45

  • @billyrosehag
    @billyrosehag 3 года назад +2

    Awesome tutorial. This person really knows how to create fun and informative videos that are easy to grasp and not too long either. Keep it up!

  • @billyjonathan9302
    @billyjonathan9302 3 месяца назад

    Thank u for hutong games and everyone in this comment, u re all guys makes me know why i cant grab the game object and know the unity bug about the scale
    Sorry if my English s not good
    Once again
    Thank you so much

  • @theknockingstar9649
    @theknockingstar9649 3 года назад +9

    I don't know what is going on but I followed the steps to the letter but my character won't grab the box

    • @nightnol
      @nightnol 2 года назад +1

      Hey! This is solved in the final section of the video. I also found the solution to this in the Breakable Objects video on the Hutong Games channel.

    • @troyna77
      @troyna77 Год назад

      Did you ever figure this problem(character wont grab the box) out ? could you tell me what you did ?

    • @Iamjake1000
      @Iamjake1000 Год назад +1

      General tip for others: Follow where the FSM goes to figure out where it is erroring out and go from there.

  • @rodrigopetunio
    @rodrigopetunio 3 года назад +9

    For anyone that gets the distortion bug: Unity doesn't like it when the parent doesn't have it's scale to 1,1,1. Setting Y to 2 is basically what's distorting the object. It is apparently an old Unity bug.

    • @phantasmrain
      @phantasmrain 2 года назад +1

      Thank you, I just had this issue now.

    • @nightnol
      @nightnol 2 года назад

      Thanks for sharing this!

    • @Phrygian100
      @Phrygian100 8 месяцев назад

      2 years later, this is still an issue!. I have the parent "itemHolder" scale set to 1,1,1 and the distortion is still occuring

  • @mew2you
    @mew2you 2 года назад +7

    Awesome tutorial! Is there a way to make it so i cant drag the object through walls? to make it collide with other objects

    • @PANICWORKS
      @PANICWORKS 2 года назад

      I'm having the same issue, it also pushes objects with higher mass away as if they have no mass. I assume its something to do with kinematics, and I've tried not setting the object as kinematic and it would just bounce if I were to slam it against the floor, and it won't follow the player. If you find a way to fix this please let me know.

  • @a.thiago3842
    @a.thiago3842 Год назад

    Excellent tutorial, thanks man. I did something similar, but this is a way more simple and much much easier. Thanks

  • @LuisGuilherme-yx9xi
    @LuisGuilherme-yx9xi 3 года назад +8

    I was having an issue where the object couldn't keep up with the player when it was grabbed. For future reference if anyone happens to have the same issue, I had set the grabbed object physics to Interpolate, that was causing the issue of not keeping up with the player. Setting to None or Extrapolate fixes this (this is under the Rigidbody component in the inspector)

  • @Phrygian100
    @Phrygian100 8 месяцев назад +1

    If anyone is continuing to have the problem with grabbable objects being distorted whenever you pick them up, I resolved this by unparenting the "itemHolder" object from the Player camera. I parented it, instead straight to the player object.

  • @mathivaananvedaraj9374
    @mathivaananvedaraj9374 3 года назад +1

    Hi, Thank you so much for the great tutorial. I was looking for one and I am so happy to watch the tutorial. Looking forward for more.

    • @HoangNguyen-hb8sw
      @HoangNguyen-hb8sw 3 года назад

      Please give me this project file, because there are many places I don't understand

  • @rossmont
    @rossmont 2 года назад +3

    Hello, in the Grabbable Check, when I try to name the Variable Name and the Store Value both to "IsGrabable" it doesn't let me use the same name twice, what am I doing wrong? Thank you for these awesome tutorials!

    • @HutongGamesLLC
      @HutongGamesLLC  2 года назад +2

      Sounds like you may already have "isGrabbable" as an option to select from the drop down menu.

    • @troyna77
      @troyna77 Год назад

      the only was I could get this to work is to Create the "Store Value" first i.e. "isGrabbable"
      and THEN goto "Variable Name" and select "isGrabbable".

  • @east_photoz
    @east_photoz 8 месяцев назад

    Do i need to follwo that first video to get my box grabbable. I cant break it either by clicking on it.

  • @jesuschavez190
    @jesuschavez190 2 года назад +2

    Have an issue when I pick up the box and lift it up it starts to distort the box, and if I throw it, it will keep the distortion

    • @nightnol
      @nightnol 2 года назад +1

      "For anyone that gets the distortion bug: Unity doesn't like it when the parent doesn't have it's scale to 1,1,1. Setting Y to 2 is basically what's distorting the object. It is apparently an old Unity bug." - Rodrigo Petunio (They solved it in a comment above.)

    • @troyna77
      @troyna77 Год назад

      For anyone that gets the distortion bug: Unity doesn't like it when the parent doesn't have it's scale to 1,1,1. Setting Y to 2 is basically what's distorting the object. It is apparently an old Unity bug.

  • @nightnol
    @nightnol 2 года назад

    Love these tutorials. In order to throw the crate, I have to drop it, pick it up, drop it, then pick it up again. Anyone know how to make it so that I can throw it without having to drop it beforehand?

  • @JJforYoutube
    @JJforYoutube 3 года назад +1

    hey I was wondering how an enemy can detect if it gets hit by a ray cast in unity playmaker

  • @kirejevas
    @kirejevas 3 года назад

    What is the reason you put FINISHED on the Gravity and kinematic state?

  • @astro_case
    @astro_case 8 месяцев назад

    When I grab/hold the object and look down, it pushes my character controller around lol. Using the Super First Person Controller asset. Other than that, it works great! Thanks!

  • @ProdAdape
    @ProdAdape Год назад +1

    I can’t seem to get the object to be thrown in the direction the camera is pointing. I’ve gone through the FSMs several times at this point, and I’m matching the video from what I can tell.
    My variable for forward direction is set up, and is based on the cameras z axis (+1), but it’s always thrown in the same direction my character started facing.

    • @Aszir
      @Aszir 9 месяцев назад +1

      I have the same problem and I don't know what the hell is happening, did you menage somehow to make it work?

    • @ProdAdape
      @ProdAdape 9 месяцев назад

      @@Aszir I did. I’m not actually sure what the solution ended up being, but if you need to compare fsm’s or something of the sort, I still use this mechanic in my game, and can walk through it on discord or something.

  • @hyprolxag
    @hyprolxag 3 года назад +3

    I los it when the instructor grab the floor instead of the box lol

  • @xalbinoxturtlex7480
    @xalbinoxturtlex7480 3 года назад

    Perfect, Thank you!

    • @HoangNguyen-hb8sw
      @HoangNguyen-hb8sw 3 года назад

      Please give me this project file, because there are many places I don't understand

  • @darkknightleon9843
    @darkknightleon9843 3 года назад +1

    This tutorial realy gives me sense of achievement. haha~~ The Force Awakens

  • @stdiogypsy
    @stdiogypsy 3 года назад +3

    Hey there,
    Any chance someone can tell me what the difference is between the next state and FINISHED? Thanks!

    • @HutongGamesLLC
      @HutongGamesLLC  3 года назад +5

      When you make your own events the names can be whatever you want them to be. However, there are System Events which are designed to have special functions. Similarly, the FINISHED transition/event is a way of automatically sending off when all the actions in that state are completed. It's a simplified way of saying "Do the next thing" once a state has finished running all actions.

    • @stdiogypsy
      @stdiogypsy 3 года назад

      @@HutongGamesLLC Thank you so much for the response!

  • @ragnar8871
    @ragnar8871 Год назад

    when the object is picked up at each rotation of the view it distorts, it would seem on the y axis, I read that it is influenced by the parent object, in fact setting it to 1,1,1 in x y and z the distortion does not occur ... but if a I need a tall player how do I do? Is there no way to make the scale of the child object not be affected by the parent?

    • @Iamjake1000
      @Iamjake1000 Год назад

      Seperate the "logic" from the visuals. Example: Remove the mesh renderer from the Player and make a child of it for the visuals.

  • @cesarsfalcao
    @cesarsfalcao 5 месяцев назад

    Stuck in grabbable check...

  • @sillydog3647
    @sillydog3647 3 года назад

    hello playmaker,I want to know how to control the camera zoom,move,rotate like in the scene.thanks brother!

    • @HoangNguyen-hb8sw
      @HoangNguyen-hb8sw 3 года назад

      Please give me this project file, because there are many places I don't understand

  • @se5d
    @se5d 2 года назад +1

    you do have a wonderful product but tutorials are sucks. long and boring

    • @alexse3476
      @alexse3476 7 месяцев назад

      You're stupid!