how to apply root motion to a point cloud

My objective is to add a 3D bounding box to a character that changes size and moves along with the character as it animates. I can’t just use the center and extents method because they result in a box that is too big so I want to examine the point cloud for min and max, then use those to create my own AABB.

I have succeeded in creating the point cloud using this in LateUpdate()

	SkinnedMeshRenderer mfs = this.GetComponent<SkinnedMeshRenderer> ();
	mfs.BakeMesh(bakedMesh);
	vList.AddRange (bakedMesh.vertices); 

and then using a canned point drawing routine that takes vList to show the point cloud. That all works and the point cloud animates nicely along with the avatar but I can’t get it to move along with the root motion.

My intent was to grab the animator, get the delta since last frame and just add that to all the points (eventually, I’ll create the AABB first and just add to those vertices but for now I want to see the point cloud moving along)

	anim = GetComponentInParent <Animator> ();
	for (int i = 0; i < vList.Count; i++){
		vList *+= anim.deltaPosition;*
  •   }*
    

However, when I look at deltaPosition, it’s always zero.
I have tried storing anim.rootPosition and creating a delta myself but that doesn’t work either.
Any help would be appreciated.

So I found the answer. The rootmotion affects the transform of the parent object so all I have to do is add the transform.position from there. Problem solved.