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. 

How can I make a mesh react to particle collision

I've got a basic level with floor and a pillar static mesh as a blueprint. I can walk around and when I touch the pillar it falls over, which is what I'd expect to happen.

I've also got a water particle firing from the player's perspective, essentially copied from the Blueprint Communication example from the Content Examples pack.

This water will happily collide with the floor and a static mesh "pillar" I have in the world. However it doesn't make the pillar collapse, only the player can make it collapse by walking into it.

This video shows the above in action: http://youtu.be/U8j8ay5hHWg

How would I get the water to push the pillar over?

I can post the settings of the particle and pillar blueprints if needed, but since there could be a lot I thought I'd hold off for now...

Edit

Here is a screenshot of my Blueprint for the water projectile particle:

alt text

and the Blueprint for the pillar

alt text

I hope this helps explain my current setup better.

Edit 2

I've resorted to adding a radial force component to the projectile blueprint and calling Fire Impulse in the Event Graph when a hit is detected, however this doesn't quite behave the way you'd expect a water cannon to work. I think I'll come back to this when I have a bit more experience with the engine & various editors.

Product Version: Not Selected
Tags:
more ▼

asked Jun 04 '14 at 08:19 PM in Blueprint Scripting

avatar image

NxSteveo
1 1 2 2

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

2 answers: sort voted first

Or you could emit a sphere with a transparent material applied to it along with the particle. This way it does not matter if you later switch between GPU/CPU particles.

I know it is a dirty hack, but it might work

more ▼

answered Jun 05 '14 at 02:55 AM

avatar image

mindfane
3.4k 154 51 271

avatar image STovey Jun 05 '14 at 09:01 AM

Ah yes, I forgot to mention that this would only work with CPU particles.

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

Hey,

I've not used the feature personally but looking at the code I believe that what you want is possible. In the Collision module in Cascade, you need to set the bApplyPhysics flag to true and set the ParticleMass value to something large enough to push your pillar over. I can't really guess at value you'd need as it will depend on how massive the pillar is and how many particles are going to be hitting it etc.

Hope that helps.

Cheers,

Si

more ▼

answered Jun 04 '14 at 08:30 PM

avatar image

STovey
61 1 2 2

avatar image NxSteveo Jun 08 '14 at 09:18 AM

Sorry, but I don't know what you mean by the Collision module in Cascade. I know (think) that Cascade is the particle system editor but I can't find anything to do with collision.

avatar image STovey Jun 08 '14 at 11:00 AM

Yes, Cascade is the editor for particle systems. Your water effect Blueprint(BP) has a ParticleSystemComponent(PSC) called Effect which is using the ParticleSystem(PS) P_Water_Projectile. Go to this asset in the content browser and copy it to a location in your game directory structure. Set you BP to use this new PS and open the PS for editing. This will open up cascade. At this point you should probably give the cascade docs a once over but simply, a Particle System is made up of one or more emitters. These are the columns in the main window. Each emitter is made up of various modules that control it's behaviour. To get the water effect to collide with the world, the emitters in this PS will have the Collision module applied to them. Click on this collision module and find the properties ApplyPhysics and ParticleMass.

Hope that helps. If you're still having trouble I'll post some screen shots explaining this in more detail.

Cheers,

Si

avatar image NxSteveo Jun 08 '14 at 01:04 PM

My particle uses GPU sprites so when I try to add a collision module it only gives the option of Collision (Scene Depth) which does not have the properties you refer to. I can find them if I add a new emitter and have enabled ApplyPhysics and set the ParticleMass to various values (20 up to 10000), this still doesn't cause the particle to interact with the pillar. I've edited my question with further details.

alt text

(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