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 line trace around player?

I want to do multiple line traces around a point in world. It would start pointing up or whatever and go around all the way with customizable offset between the traces. Also it should have customizable amount of traces. How to do this and what kind of math i must use to achieve this? Currently i've only came up making array of x=1 y=0, x=1 y=1... etc. this is obviously wrong and doesn't work as i want it to, see pictures related.

Product Version: UE 4.20
Tags:
more ▼

asked Sep 13 '18 at 07:54 PM in Blueprint Scripting

avatar image

jabetsgi
3 1 1

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

2 answers: sort voted first

Hey,

Can you explain a bit what are you trying to do? I think there is better way to this as making many linetraces dosn't seem to be best idea.

You can create sphere collision and get everything that it colide with.

Let me know if you need better explanation.

more ▼

answered Sep 13 '18 at 08:01 PM

avatar image

Przemek2222
179 3 8 9

avatar image jabetsgi Sep 13 '18 at 08:17 PM

No i don't think sphere trace is good here. I want to simulate field of vision around the player. Like this https://www.redblobgames.com/articles/visibility/#ray-casting

avatar image Przemek2222 Sep 13 '18 at 08:24 PM

I will create something like this later or tomorrow.

avatar image Przemek2222 Sep 13 '18 at 08:55 PM

I've got blueprint. You can do whatever you like, I have used debug lines to show that it works and I have did this in 3d space you can change this.

This is just a concept on how to do it.

Link to blueprint. Just coppy and paste in your project.

https://drive.google.com/open?id=1-k-vkfbW609SteLGSsokFIG4e45VeVMY

avatar image jabetsgi Sep 13 '18 at 09:20 PM

this had the information to solve the problem, thank you.

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

Btw Unreal has a solution built into the engine for this. Its called EQS Querry System its pretty handy

more ▼

answered Sep 14 '18 at 04:38 AM

avatar image

Evertoo
42 1 1 3

avatar image jabetsgi Sep 14 '18 at 12:50 PM

You're right, it is handy. I were able to achieve the same thing with this.

(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