Tag Info

Hot answers tagged

7

A pseudo-random number generator like C#'s System.Random generates a deterministic sequence of numbers from a starting state, a seed. When you construct a System.Random instance without any arguments, it initializes the seed based on the current time. As your two instances are created very close in time, it's likely that they will get the same seed, and ...


4

You generally don't want to manipulate the vertices of the model objects to move them around in your world. Instead, you set the world transformation matrix (that you pass to Draw) accordingly, for example setting it to a translation matrix that moves the model by the desired amount. That said, if you really want to manipulate the vertices directly -- ...


2

Since you say you want to move some vertices... Assuming you do simply want to move the vertices in object space, you would need to reupload them to the graphics card (however XNA handles this). Or else apply a transformation to a particular set of vertices (eg. if you are moving an arm or a leg). That would require some method of identifying only those ...



Only top voted, non community-wiki answers of a minimum length are eligible