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