UE4 Pull Lever / Radial Switch using Physics Constraints in Unreal Engine 4 Tutorial How To

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

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

  • @BlackPara11
    @BlackPara11 Месяц назад

    Every time I search for something, you drop a video from the sky, thanks!

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

    This is EXACTLY what I have been looking for! I have been trying to setup making a door in VR, and I knew the base logic I needed to figure out was how to make the physics constraint work how I need it to so I don't have to worry about too much complex actions like breaking the constraints, rotating the door manually with angular math, applying a new constraint, transfering the velocity... If the door can only move in the intended direction, who cares what way the player's hand is going? This is well explained :)
    For the record, around 6 minutes where you are pointing out the difference in the positive and negative axis movement, I am pretty sure that is just due to the difference in world/relative axis :) You are trying to use the relative axis values available in the blueprint, and align them to the world axis in the level. Your fix is a good one though! I typically spend a few extra minutes playing with things to find the proper world rotations.

  • @michaelvollrath3192
    @michaelvollrath3192 4 года назад +1

    I implemented similar logic for a switch and was stuck trying to get it to snap between two points. Your method solved it for me. Thank you for this awesome tutorial!

  • @domingogonzalez8283
    @domingogonzalez8283 4 года назад +3

    Great, a lots of thanks to helps us with your work.
    One question
    How to use physic constranct so that when you grab a lever it moves in the direction in which we push it as a direction control and that it returns to its central position if we do not exert pressure ..... forward, back, left, right .....
    can you make a tutorial about it.
    Thank you.

  • @sergeyzhukov3796
    @sergeyzhukov3796 6 лет назад +2

    WOW. This is mindblowing. So many things i can do now. Thank you , for your channel!

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

    I love these, they're so helpful!!

  • @luwinkre2371
    @luwinkre2371 5 лет назад +4

    Amazing work, but I wonder if you could upload a VR version of this series?

    • @Lusiogenic
      @Lusiogenic  4 года назад +3

      This should work in VR, as-is. There's no special setup for that.

  • @BartalamBane
    @BartalamBane 5 лет назад +2

    Thank you for the good lesson👍

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

    Sorry. Could you attach KettleBellWeight or explain how to make hole in collision. I dont know how to use meshes with hole.

  • @petripekkarinen2559
    @petripekkarinen2559 4 года назад

    Great tutorials! Using this method could it be possible to attach the base of the lever to another object that is moving and rotating in the scene? How would the physics constraint work then, anything that should be done differently?

  • @nijq
    @nijq 4 года назад

    Love your tutorials!!! I followed in C++ and when I grab the handle and push/pull it all the way to one side, it sometimes gets stuck (goes to sleep?) until I grab it again or collide with it.
    The OnConstraintBroken event does not fire. Has anyone experienced similar? im using 4.25.1

  • @shadesmadness4399
    @shadesmadness4399 6 лет назад +1

    Would there be a way to implement this to make an actor rotate? Or activate and deactivate a physics constraint that makes an actor rotate? I've been trying to make a lever to switch a fan off and on but I'm having issues trying to get it to rotate.

    • @Lusiogenic
      @Lusiogenic  6 лет назад

      Yes, it's entirely possible. Instead of turning the light bulb on and off, you turn on a physics constraint, like you said.
      Check this tutorial to see how to make a wheel rotate: ruclips.net/video/7mZ9XTLIFY0/видео.htmlm32s
      To make it stop or start, set the Target Velocity of the physics constraint to either 0 or a value that you want.
      BTW, I've also done a blowing fan tutorial if you're interested: ruclips.net/video/J9lVADyd8ZQ/видео.html

  • @Unknown-oc3lm
    @Unknown-oc3lm Год назад

    Does this work in Unreal Engine 5?

  • @robertmaxwell7350
    @robertmaxwell7350 4 года назад

    Thank you for the tutorial, would it be possible to configure it for more than 2 positions?

    • @Lusiogenic
      @Lusiogenic  4 года назад

      You can set up how many positions you want. You just have to make the Blueprint code for them.

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

    can you make a physical button tutorial

  • @kingofwar1422
    @kingofwar1422 4 года назад

    i can't send the 'use' signal to the thing i want to start a event i've followed the other video with the trebuchet but i can't figure out how i can fix it

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

    can i turn this into a button

  • @Albert-Freeman
    @Albert-Freeman 5 лет назад +1

    Hey thanks for your tutorials... Would be great if you do one on 'how to grab objects'
    I have seen some but all tutorials are outdated an some nodes in blueprints to code it they just don't exist anymore and I can't find an actual good tutorial...

    • @Lusiogenic
      @Lusiogenic  5 лет назад +1

      Already made it: ruclips.net/video/irk5NAuFPMc/видео.html

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

    Trying this in unreal engine 5.1 and it appears the linear limits and Angular limits are broken for me and I can't even recreate the same result in 4:48, can anyone help?

  • @chandrabuana9
    @chandrabuana9 5 лет назад +1

    need help here, im new in UE4, i really didnt know how you grab that liver with mouse? anybody can help me?

    • @Lusiogenic
      @Lusiogenic  5 лет назад +4

      Check out this tutorial: ruclips.net/video/irk5NAuFPMc/видео.html

  • @moocows111111
    @moocows111111 6 лет назад

    Hey again, how did you create cast to use at 10:57?

    • @Lusiogenic
      @Lusiogenic  6 лет назад +1

      First, you need an interface, in order to have something to cast to. Then, in the blueprints, in order to make the interface appear when typing "cast", make sure that you uncheck "Context Sensitive", like I did at 10:53 .

    • @Lusiogenic
      @Lusiogenic  6 лет назад +1

      I've shown how to create the Use functionality and the Use interface here: ruclips.net/video/eYT4MYOF_1A/видео.htmlm36s

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

    how would i get the player to grab the lever
    i know its physics handle but idk how to use it

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

      Physics constraints can do that also:
      ruclips.net/video/irk5NAuFPMc/видео.html

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

      @@Lusiogenic Yyoo
      thanks but i couldnt get mine to grab the lever. i used physics handle btw

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

      @@fahood9242 I can only vouch for my method. Try it and see how it goes.

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

      @@Lusiogenic igth

  • @WeisterXDprogrammer
    @WeisterXDprogrammer 4 года назад

    how to maKE this work on VR? with the hand
    got any idea?

    • @Lusiogenic
      @Lusiogenic  4 года назад

      This should work in VR with no modifications.

  • @ultgamercw6759
    @ultgamercw6759 5 лет назад

    I am having a problem where my handle just keeps falling off the base. I am about five mins into the tutorial and can't find out what is wrong.

    • @Lusiogenic
      @Lusiogenic  5 лет назад

      You physics constraint is probably not set up correctly or it isn't connected to the two objects. Check the name of the connected components.

  • @moocows111111
    @moocows111111 6 лет назад

    Do you have the models for the base and handle?

    • @Lusiogenic
      @Lusiogenic  6 лет назад

      Yes, I do. I don't know why I haven't posted them. I'll put them up as soon as possible.

    • @Lusiogenic
      @Lusiogenic  6 лет назад

      I've uploaded the 3D models for the asset. You can find the links in the video description.

    • @moocows111111
      @moocows111111 6 лет назад

      Thanks! Also you know when you go into the game after clicking play, how did you interact with the object to see if the lever is working? I cant seem to get mine to work properly. I'm quite new to unreal but your tutorial has made me understand a lot for the project that I am working on :D
      DD

    • @Lusiogenic
      @Lusiogenic  6 лет назад

      In order to be able to grab the object using the player character, you have to implement this tutorial : ruclips.net/video/irk5NAuFPMc/видео.html
      It should work, afterwards. :)

  • @ijazahmad7077
    @ijazahmad7077 5 лет назад

    Hi, have you implemented this lever mechanic in VR?

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

    Cast to I_use not showing

  • @vrmaurice
    @vrmaurice 4 года назад

    5:05