Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How would you make bullet penetration?

The title really tells it all.. I'm struggling hard to get it working so I thought, why not ask you guys.

Product Version: Not Selected
more ▼

asked Feb 02 '15 at 04:17 PM in C++ Programming

avatar image

1 2 3 6

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Trace, trace and trace again.

When you impact a mesh, decide if you are going to pass through it. Determine a point on the other side of the mesh based on the entry point, and then continue the trace again as appropriate on the other side.

If you don't need to change the angle, it gets even easier, just use a multi line trace: https://docs.unrealengine.com/latest/INT/BlueprintAPI/Collision/MultiLineTraceforObjects/index.html

more ▼

answered Feb 02 '15 at 04:24 PM

avatar image

603 23 30 52

avatar image Santo Feb 02 '15 at 04:52 PM

I would need something like startsolid to go through the object right? For some reason it doesn't work: on the first screen it works perfectly: http://prntscr.com/606g83 but if the shot is a bit angled it messes up: http://prntscr.com/606gel (red points are each starting point of the trace..

avatar image ambershee Feb 02 '15 at 04:55 PM

It'd help to know which approach you're using - I'm not sure what you mean by 'startsolid'?

Looking at the screenshots, it looks to me like it is working in the second, can you describe how it's messing up?

avatar image Santo Feb 02 '15 at 06:23 PM

basically the red "line" should show how thick the wall is..

avatar image Santo Feb 02 '15 at 05:02 PM

Thanks for trying to help me.. here is my code:


I'm doing a trace starting from inside and going further in till it doesn't start penetrating anymore.. but as you may see it doesn't work.. :(

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question