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"

How to get object thickness (or get "linetrace out location)

Hi). The question is same as topic name) alt text

Product Version: UE 4.10
Tags:
getthickness.jpg (36.2 kB)
more ▼

asked Jan 18 '16 at 06:31 PM in Blueprint Scripting

avatar image

Jeka3d
38 4 8 10

avatar image Jeka3d Jan 25 '16 at 04:16 PM

nobody knows or it isn't possible?

avatar image Jihed.Jaouabi Apr 03 '17 at 04:22 PM

Need this too, up!

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

2 answers: sort voted first

Have a look at my answer in this thread:

https://answers.unrealengine.com/questions/577674/how-to-get-a-trace-hit-on-the-opposite-end-of-a-wa.html

Getting the distance between both Location vectors in FirstHit, and ExitHit would get you the thickness.

more ▼

answered Apr 03 '17 at 07:22 PM

avatar image

Mosel3y
1.8k 49 22 67

avatar image Jihed.Jaouabi Apr 03 '17 at 07:26 PM

Aha so multiple linetrace can give the end hit of the same object? Didn't know that.. I'll give it a try.. Thanks!

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

Maybe this is what you are looking for:

https://docs.unrealengine.com/latest/INT/BlueprintAPI/Collision/GetActorBounds/index.html

You can calculate the "thickness" of an actor using the actor bounds.

more ▼

answered Apr 03 '17 at 06:44 PM

avatar image

Sveitar
1k 8 24 28

avatar image Jihed.Jaouabi Apr 03 '17 at 06:52 PM

Thanks but this is not what I am looking for, because the thikness that I am looking for is more like "linetrace position in where it gets out of the object". Of if the angle change the "thikness" will change respectively. (I know that the word thikness isn't accurate)

avatar image Sveitar Apr 03 '17 at 07:00 PM

I don't know what you are trying to accomplish but it seems that maybe you would benefit from using a projectile instead a ray trace and use the hit actor start overlap and end overlap events to calculate the locations where the projectile enter and leave the hit actor.

avatar image Jihed.Jaouabi Apr 03 '17 at 07:17 PM

The projectile stuff may work but that means that I should add a box trigger around all my objects. What I am trying to achieve is sort of parkour jump that should trigger only when it is possible to jump over an object (a max thikness is imposed here). For example; conside the same figure that Jeka3d posted, if the player was running toward the object in the linetrace dirextion like in the figure he should be able to jump over, but if the player come from the other directio (vertical, perpendicular to the red line in the figure) he should be able to even start/trigger the jump animation.

(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