Announcement

Collapse
No announcement yet.

How to get physical material override?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to get physical material override?

    Hi,

    I have a Blueprint with a static mesh component of which I set the Phys Material Override to a custom physical material.
    However when I try to print the values (friction, restitution etc.) via MyStaticMeshComponent->GetMaterial(0)->GetPhysicalMaterial() it returns only default values.
    How can I get the instance to my custom physical material? GetNumMaterials returns 1.

    GetMaterial(0) actually returns the physical material, but not as a physical material instance. Is there a way to cast it to a PhysicalMaterial?
    Last edited by simmania; 08-20-2014, 08:28 AM.
Working...
X