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"

Foliage collision effect (affected by multiple players)

Hello all. I've replicated the effect from this thread in order to get foliage to move as the player brushes past: https://forums.unrealengine.com/showthread.php?1795-Foliage-collision-foliage-bend-on-collision-In-engine-feature

The solution in that thread works for one player pawn, however as I'm making a local multiplayer game, it also needs to work with the rest of the players (up to four in my case).

I've already adapted the Material Parameter Collection to include parameters for each player. But when I go into the material editor, the node for the Material Expression Collection Parameter only lets me select one player as the parameter. Switching between them does indeed work as expected, but I need to be able to have the effect applied for all players at once.

Demonstration gif: http://gfycat.com/ReflectingUnkemptBlackfootedferret

Material Collection Parameter screenshot : https://i.imgur.com/9NxQ0rE.png

Foliage material screenshot : https://i.imgur.com/Z70LIrD.png

Product Version: Not Selected
more ▼

asked Aug 04 '14 at 02:30 AM in Rendering

avatar image

204 26 28 93

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

1 answer: sort voted first

Hey zerofiftyone -

You should be able to duplicate your calculation for the Player0 world offset using each of the player inputs separately so you will have 4 duplicates for Player0, Player1, Player2, and Player3 then add each of them together and plug the total into World Position Offset.

Thank You

Eric Ketchum

more ▼

answered Aug 04 '14 at 09:10 PM

avatar image

Lovecraft_K ♦♦ STAFF
36.6k 703 260 737

avatar image zerofiftyone Aug 04 '14 at 11:13 PM

That's it! Thanks so much for the response. I'm still pretty much a beginner when it comes to the material editor, so this little nugget will be sure to help me out in the future.

(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