Search found 2 matches

by tice
Wed Jun 15, 2016 2:37 pm
Forum: Questions and Help
Topic: StaticMesh - Update Vertices?
Replies: 2
Views: 3819

Re: StaticMesh - Update Vertices?

I added

Code: Select all

myStaticMesh.UpdateBoundingBox();
after setting the new Vertices and it seems to work!
by tice
Wed Jun 15, 2016 2:10 pm
Forum: Questions and Help
Topic: StaticMesh - Update Vertices?
Replies: 2
Views: 3819

StaticMesh - Update Vertices?

Hello, I tried updating the Vertices of a StaticMesh like this: // startup myStaticMesh = new StaticMesh(vertices, indices); Space.Add(myStaticMesh); // sometime later in the program for (int i = 0; i < vertices.Length; i++) vertices[i] += new Vector3(10, 0, 0); myStaticMesh.Mesh.Data.Vertices = ver...