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 make a particle systems Initial location affected by box size?

actor blueprint with a box component and a particle system in it.

i want the particles to spawn in the area of the box.... so how do i change the particlesystems initial location with the box's size??

Product Version: Not Selected
Tags:
more ▼

asked Apr 05 '14 at 07:20 PM in Blueprint Scripting

avatar image

ClaverFlav
342 29 147 200

(comments are locked)
10|2000 characters needed characters left

5 answers: sort voted first

Did you try using a timeline to change the vector values over time? This works if you set initialLocation to a constantCurve and animate that curve over time...so I expect it would work with a Blueprint.

Another method would be to setup a particle parameter on a shape location, and modify it in a similar manner. This I know works, check the images below.

Hope that helps you!

alt text

alt text

scalepp.jpg (57.3 kB)
scalebp.jpg (237.6 kB)
more ▼

answered Apr 09 '14 at 10:34 PM

avatar image

[Epic]homeRye STAFF
1.2k 22 3 42

(comments are locked)
10|2000 characters needed characters left

Howdy!

If you take a look at the Effects map inside the Content Examples project, there are some examples in there that might be what you are looking for. Example 1.3 deals with Emitters Initial Location, you may also find useful section 2.2 on Global Vector Fields.

These might point you in the right direction.

-W

more ▼

answered Apr 05 '14 at 07:59 PM

avatar image

Wes Bunn ♦♦ STAFF
5k 145 64 206

avatar image ClaverFlav Apr 05 '14 at 10:28 PM

example 1.3 initial location is being determined by another particle emitter within the same system.

example 2.2 is a vector field placed in the editor and effect already spawned particles.

i want to make a particle systems location settings to be configurable from the outside in the editor. so that one wall of fire can be custom length of 300 while others are only 30 by default... or i guess i could place 10 particle systems next to each other end to end to achieve the same goal...

i was just curious if there was a way.

avatar image ClaverFlav Apr 05 '14 at 10:37 PM

like what i have for a character spawner alt text

Box1 being a boxcomponent added to the actor

(comments are locked)
10|2000 characters needed characters left

You will want to use a particleParameter with your initial position, then create a vector variable, and modify that parameter via your variable in your Blueprint.

Here's a link to ParticleParameter info.

https://wiki.unrealengine.com/Particle_Instance_Parameters_Tutorial

more ▼

answered Apr 07 '14 at 03:40 PM

avatar image

[Epic]homeRye STAFF
1.2k 22 3 42

(comments are locked)
10|2000 characters needed characters left

k i set a vector parameter, but i couldnt get it to spread based on that vector.

so i have a box component that when i scale it i want the particle system to increase the location spread with it.

but this method seemed to only allow me to define a single point for all particles to spawn.

more ▼

answered Apr 09 '14 at 07:09 AM

avatar image

ClaverFlav
342 29 147 200

(comments are locked)
10|2000 characters needed characters left

When searching for a topic, this link is in the first place, so I'll post it here. If you need to have particles appearing in the volume of the box, you can use the World Offset Module. Set up start location distribution to vector uniform, then adjust the box boundaries. You can also enable visualization of the bounding box by checking 3DDraw Mode. In this way, you can set up the emitter in the form of a plane or box

more ▼

answered Oct 09 '17 at 09:22 PM

avatar image

Scalawag
1 1

(comments are locked)
10|2000 characters needed characters left
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