// sometime later in the program
for (int i = 0; i < vertices.Length; i++)
vertices[i] += new Vector3(10, 0, 0);
myStaticMesh.Mesh.Data.Vertices = vertices;
myStaticMesh.Mesh.Tree.Reconstruct();
Something is not updated correctly because a RayCast via Space.BroadPhase.QueryAccelerator.RayCast
cant seem to hit the new StaticMesh.
Any Ideas?
Thanks,
tice
Last edited by tice on Wed Jun 15, 2016 2:38 pm, edited 1 time in total.
Adding that UpdateBoundingBox to pull the new underlying AABB data over should indeed work properly- it's been a while since I've fiddled with that part of the codebase, but I'm pretty sure that doesn't leave anything misconfigured.