◆ TransformVectorRelativeToAncestor()

static Vector3 TransformVectorRelativeToAncestor ( this Transform  transform,
Transform  ancenstorTransform,
Vector3  point 
)
static
Parameters
transformTransform from which the RS will be applied to the provided point. Effectively, only local transforms between this object and the ancestorTransform, in the hierarchy, will be applied.
ancenstorTransformTransforms including and above this object, will not be applied when transforming the point.
pointpoint to transform
Returns
Resultant transformed point.