x

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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Armor thickness per impact point

Hello!

I am looking for an advice on how to implement tank armor thickness per impact point.

Basically I'd like to have low-poly body responsible for projectile interaction. alt text Each face of a body has armor thickness assigned to it. When a projectile hits a face, I'll calculate penetration based on impact angle and armor thickness.

I came up with two approaches, but I couldn't complete any of them.

  1. Hit Result - Face Index. The idea here is to have a TMap<int32, float> where each face has thickness assigned to it. The problem is map initialization. I'll probably need to write custom FBX parser to get list of triangles and color assigned to them. Is there an easier way to assign color/float to a face?

  2. Find Collision UV alt text The problem here is that I couldn't find how to get pixel color using these UVs. Also it looks like a costly operation if it has to be enabled on project level.

(I'm doing extra line trace from slightly above collision point to slightly below it, because original hit result doesn't return face index or UVs)

Thank you!

Product Version: UE 4.22
Tags:
more ▼

asked May 05 '19 at 05:21 PM in Everything Else

avatar image

Xeon-13
3 3

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

1 answer: sort voted first

I think I got first one working, but any suggestions are still welcome :)

Model has several materials which represent armor thickness. alt text

I am getting material by face index, then using section index to lookup thickness in array [100, 150, 200, 250]. alt text

Mesh has complex collision as simple enabled.

more ▼

answered May 05 '19 at 09:25 PM

avatar image

Xeon-13
3 3

(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