User Tag List

Results 1 to 9 of 9

Thread: Sample Project to destroy Destructible Mesh with Line Trace and Ball projectile

  1. #1
    0
    Unreal Engine Support
    Join Date
    Apr 2014
    Posts
    2,442

    Sample Project to destroy Destructible Mesh with Line Trace and Ball projectile

    Hi Everyone!

    I setup a sample project to help another user on the forums out and thought this would also be a good place to share in the event anyone is interested. I've seen many users ask about getting the projectile with the sample FPS template to work with destruction meshes and using line trace as well. This project has both for your testing needs.

    You will need 4.6 preview or later to use this sample project
    Download Link: https://www.dropbox.com/s/0am6hatukhldtj9/FPS_DM_Test.zip?dl=0

    Name:  DM_Test.PNG
Views: 25853
Size:  396.8 KB

    Overview:

    This sample is a setup that has two types of projectiles included.

    LMB will fire the line trace weapon that applies a radial damage on hit location
    RMB will fire the ball projectile

    The two setups in the image are the default settings used for a destruction mesh. The one on the right is setup to take impact damage from the ball projectile mesh.

    There are two additional setups to display support chunks working in 4.6 now and one setup to break chunks off the DM cube rather than fully destroy on impact.


    Have a look and if you have any questions or need help feel free to ask.

    Thanks!

    Tim
    Tim Hobson | Learning Resources | Epic Games
    UE4 Documentation
    Wiki Troubleshooting Guides: Lighting | Swarm Agent | Destructibles |
    _____________________________________________
    Follow me on Twitter @TimHobsonUE4 | My Personal Website
    Photons Be Free: Mini-Tutorials and other Curiosities

  2. #2
    0
    thanks for the project! Its a lot of fun

  3. #3
    0
    Thank you very much for this Tim!
    I find it very useful not only for the look at destructible meshes but for the use of line traces aswell
    "sic parvis magna"
    @Meguido

  4. #4
    0
    Very cool stuff , i will wait 4.6 release for trying it . Thank you so much.


    Tim Hobson , i don't know how saying it in english because it's really hard for me you explain :

    A day ; if you have ever free time to do some tutorials like this :

    Detect if a wall is small then the character is "crouching" squatting on ?
    Detect if the wall is bigger then the character is pressed and remains standing on
    Detect if two walls are close then the character can run, move over.
    I will not dare to ask to climb on walls because assets in the marketplace....

    Maybe like Gear of wars you will understand ? Thank you

  5. #5
    0
    Can you help me please?
    How do you set up the cube to break chunks off the DM cube rather than fully destroy on impact? I try to replicate it, but with no luck.

  6. #6
    0
    Unreal Engine Support
    Join Date
    Apr 2014
    Posts
    2,442
    Hey Patrik,

    No problem.

    Some of this will be determined by how you've applying damage to the cube but let's say for as a starting point that you only want to drop a cube and have it not all break as once. No weapons or anything. Just gravity.

    The settings you'll want to focus on on setting the for impact damage and support depth

    Damage Threshold: 1
    Impact Damage: 1
    Default Impact damage Depth: 1
    Support Depth: 1

    I don't have Unreal opened in front of me, but I think that should get you started. The most important part is the support depth. This will keep chunks together that have not received enough force to be broken free.

    Give that a shot and let me know.

    Tim
    Tim Hobson | Learning Resources | Epic Games
    UE4 Documentation
    Wiki Troubleshooting Guides: Lighting | Swarm Agent | Destructibles |
    _____________________________________________
    Follow me on Twitter @TimHobsonUE4 | My Personal Website
    Photons Be Free: Mini-Tutorials and other Curiosities

  7. #7
    0
    That was the problem. Thank you for the solution.

  8. #8
    0
    Unreal Engine Support
    Join Date
    Apr 2014
    Posts
    2,442
    No problem, Patrik!

    Let me know if you have any other questions with Destruction. I don't mind.

    Tim
    Tim Hobson | Learning Resources | Epic Games
    UE4 Documentation
    Wiki Troubleshooting Guides: Lighting | Swarm Agent | Destructibles |
    _____________________________________________
    Follow me on Twitter @TimHobsonUE4 | My Personal Website
    Photons Be Free: Mini-Tutorials and other Curiosities

  9. #9
    0
    Does this project still work?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •