How to change Decal's rotation at runtime relative to the floor or wall? C++

Note that the correct orientation is FRotationMatrix::MakeFromXZ(-ImpactNormal, MyOtherVector).

Decals project along their local +X axis, so you want it to project into the surface normal, not parallel with it. In decals with normal maps, this matters a lot.

2 Likes