Announcement

Collapse
No announcement yet.

Collision

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Collision

    Hey,
    Is there a collision where the player could overlap but the world not?
    Because i want to drop a item from my character so that it fall on the ground..

    Thanks

    #2
    Can you elaborate more ?
    If you want to drop something from your character , you can enable physics for it at the specific time<like when you press some key> , and it will fall to the ground

    Comment


      #3
      How do i do this?

      My Inventory works with overlap. So u pick a weapon up during overlaping it. So i want to drop a weapon -> falls to the ground -> but could be picked up by the player with overlaping.

      Comment


        #4
        In the collision settings you can set the collision preset to custom and then choose which channels will block, overlap or ignore.
        So you will set it to overlap the pawn and block the world for example.

        4.10 Update! -> [Community Project] WIP Weather & Ocean Water Shader
        WIP Interactive Water Shader, WIP 2D Water Sim
        WIP FFT Ocean w/ Foam, Quad-tree Infinite Ocean LOD

        Comment


          #5
          Okay and how could i set Physics of an Mesh or Object with my blueprint?

          Comment


            #6
            didnt find a solution yet..

            Comment


              #7
              Here's how you can do that from a BP:

              Click image for larger version

Name:	sim_physics.jpg
Views:	1
Size:	56.0 KB
ID:	1050503

              In my example, physics simulation is turned on when I press "F". You should be easily able to adapt it to your script.

              Cheers,
              Michael
              VFX & AI
              http://www.team-imx.com

              Comment


                #8
                Thanks. And how does it work with Actor Begin Overlap?

                Thank you very much!

                Comment


                  #9
                  Originally posted by orgertot View Post
                  Thanks. And how does it work with Actor Begin Overlap?

                  Thank you very much!
                  I'm not quite sure what you mean by "how does it work with actor begin overlap?"

                  If you want to drop an item from your inventory (I'm assuming it is an array), you have to first in some way choose what array element to drop, get the actor from that element, (spawn the actor in the level?) and if it is a "stackable item" you need to lessen the stack amount but if it is the last item or a none stacking item you need to remove it from the array.
                  I'm no professional but hopefully my approach is fairly correct >.<
                  Kind Regards,
                  Bonny

                  Comment


                    #10
                    In the Content Example the alien space ship (I believe its under Blueprint Input or something along them lines) has an example of picking up objects, storeing them in an array and then dropping them back down on the ground. It shows picking up a physics enabled object (turning off the physics) storeing the object and then droping it back down while turning on the physics for the object.

                    Comment


                      #11
                      You can find a lot of information on collision in the docs here: https://docs.unrealengine.com/latest...ion/index.html

                      Comment


                        #12
                        I want to do this in my pawn:
                        Click image for larger version

Name:	Unbenannt.PNG
Views:	1
Size:	53.3 KB
ID:	1050533

                        Comment


                          #13
                          Originally posted by orgertot View Post
                          I want to do this in my pawn:
                          [ATTACH=CONFIG]2095[/ATTACH]
                          You want to simulate physics of the actor you dropped?
                          Kind Regards,
                          Bonny

                          Comment


                            #14
                            Yes and i picked up. My pick up is just when my pawn overlap an item.

                            Comment


                              #15
                              Originally posted by orgertot View Post
                              Yes and i picked up. My pick up is just when my pawn overlap an item.
                              Well, then after you drop the item (remove it from array and spawn it in the world) get a reference to that specific item and then use the simulate physics?
                              Kind Regards,
                              Bonny

                              Comment

                              Working...
                              X