Hello,
I use this script to Instantiate a plane with a hole texture on objects, but it is Instantiated on the very edge of the object. As a result, it double-planes.
How can I Instantiated 0.01 units farther from the object?
var hit : RaycastHit;
if (Physics.Raycast (transform.position, fwd, hit, attributes.Range))
{
print ("We hit something!");
var InstPos : Vector3 = new Vector3(hit.point.x -0.1, hit.point.y, hit.point.z);
var instHole = Instantiate(Hole, InstPos, Quaternion.FromToRotation(transform.up, hit.normal));
instHole.transform.up = hit.normal;
}