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"

Is It possible to change the friction of an object via blueprint ?

Hi ,

I have a physics object that you can push around a level . I want to be able to increase and decrease the friction of the object during gameplay . I can do this by changing the Physical material , which is almost what I want apart from the change is very sudden .

Ideally I would be able to have the friction settings as a variable that I can change via a Blueprint timeline so that I have more control and the change is more gradual .I have tired this , but as yet I have not been able to access the friction settings for an object via blueprint .


Product Version: Not Selected
more ▼

asked Oct 09 '14 at 03:24 PM in Blueprint Scripting

avatar image

161 13 18 22

avatar image Beervangeer Nov 16 '15 at 02:42 PM

Did this stop working in later versions? Im not able to acces any physical material parameters.

avatar image Rudy Q ♦♦ STAFF Nov 16 '15 at 03:53 PM

Hello Beervangeer,

I have a few questions for you that will help narrow down what issue it is that you are experiencing.

Quick questions:

  1. What version of the engine are you using?

  2. Can you reproduce this in a clean project?

  3. If so, could you provide a detailed set of steps to reproduce this issue on our end?

  4. When you say that you can not access any physical material parameters, are you saying that you do not have any available options when opening your physical material?

  5. Could you provide screen shots of any materials that may be involved with this issue?

avatar image Beervangeer Nov 16 '15 at 04:03 PM

I use 4.9 now

Create a material with a physical material setup. Then try to access the material in the blue print like in the screenshots. You can get the parameters. But the set functions are not available. I have seen on the forums that it was possible in older versions of Unreal.

alt text

alt text

avatar image Rudy Q ♦♦ STAFF Nov 16 '15 at 04:46 PM

After doing a bit of digging I was able to find that this change was by design. Modifying those variables would modify the asset, not a local instance. I have also provided a link to the original issue below. Feel free to navigate to that thread for further information. I hope this helps.

Link: https://answers.unrealengine.com/questions/135031/cant-set-physical-material-properties-through-blue.html

Make it a great day

avatar image DaveHall17 Nov 16 '15 at 04:49 PM

Hi Rudy ,

Are any plans to implement this feature or is there another way to change the physics properties ?

avatar image Rudy Q ♦♦ STAFF Nov 16 '15 at 05:04 PM

Hello DaveHall17,

A workaround that may be viable depending on your needs would be to swap between multiple physical materials.

avatar image Beervangeer Nov 16 '15 at 05:09 PM

Thats possible, but makes changes very limited

avatar image DaveHall17 Nov 16 '15 at 05:13 PM

Yes I have tried this , but it does not give you that much control and it is also quite time consuming to implement .

avatar image Beervangeer Nov 16 '15 at 05:02 PM

So do you have a suggestions to achieve this in a different way?

avatar image Rudy Q ♦♦ STAFF Nov 16 '15 at 08:13 PM

I do not have other suggested workarounds for this issue at this time.

avatar image Maim Games Jan 10 '17 at 11:08 PM

Is it possible to change the physical material of a specific bone or body in a physics asset through blueprint?

avatar image Rudy Q ♦♦ STAFF Jan 11 '17 at 02:29 PM

Hello Maim Games,

If you read above you will see that the only current workaround I have for modifying physical materials at run time in blueprints would be to swap them out for other physical materials. I hope that this information helps.

Make it a great day

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

1 answer: sort voted first

Hello DaveHall17,

If you would like to alter the friction settings of an object during game play you can try the following:

After setting this up all you will need to do is set up the system you would like to use to change the "AmountOfFriction" variable (in this case it's a float). alt text

Note: You will need to create a Physical Material and apply that to the material that is applied to the object that you would like to affect. You can do this by opening the material editor and selecting your Physical Material under the physical material tab in the details panel.

frictionhelp.png (45.1 kB)
more ▼

answered Oct 09 '14 at 08:17 PM

avatar image

Rudy Q ♦♦ STAFF
47.3k 545 132 525

avatar image DaveHall17 Oct 10 '14 at 12:28 PM

Thanks Rudy , just realised it was not working because I am using 4.2 instead of 4.4 .

avatar image Neilz0r Oct 20 '16 at 05:29 AM

This doesn't seem to work anymore. I'm using v4.13.1-3142249

avatar image mattr.taylor Dec 08 '16 at 03:06 AM

Yes I can confirm that there seems to be a regression in this functionality. v4.14.

avatar image Rudy Q ♦♦ STAFF Dec 08 '16 at 03:20 PM

Hello mattr.taylor,

After doing a bit of digging I was able to find that this change was made by design. I have provided a link to the public tracker. Please feel free to use the link for more information.

Link: https://issues.unrealengine.com/issue/UE-5650

I have also written up a feature request for creating instances of physical materials to allow for runtime changes.

Link: https://jira.it.epicgames.net/browse/UE-39498

Make it a great day

(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