Decal rotation on impact zone??

Hi everyone,
i makeing a VR game about paintball, and i have a problem with de decal rotation.
i verify the impact bullet with collition.catacts[0].point and this vector3 is sended to a function to make a decal.
in the decal function i instatiate the prefab in impact zone.
the problem is the rotation, i use this line to create the decal

GameObject splat = Instantiate(splatPrefab, bulletImpact, Quaternion.FromToRotation(Vector3.up, bulletImpact.normalized));

and the rotation is bad located, i need the rotation decal be perpendicular to the impact.
i hope some one can help me.
thanks a regards

ContactPoint contains a normal property, which is a unit vector pointing perpendicular from the impacted surface. It will be invaluable for what you are attempting to do:

Thanks, it works :smile: