Hierarchy.ToLocalDirection

static Vec3 ToLocalDirection(Vec3 worldDirection)

   
Vec3 worldDirection A direction in world space.
RETURNS: Vec3 The provided direction now in local hierarchy space!

Converts a world space direction into the local space of the current Hierarchy stack! This excludes the translation component normally applied to vectors, so it’s still a valid direction.