Comment 5 for bug 1546191

Revision history for this message
Edward Keenan (edwardk) wrote :

Working with the code below which is the original from the code, I was able to make minor adjustments in the overall position by changing 0.5 for the worldLocation.Location.Z calculation to 0.55. Moving the box to the left seems to have helped, but would this be temporary. Would there be a better way of keeping the box centered over the train? I am currently experimenting with using the player train as the source of the location instead of the camera.

var temp = new WorldLocation(worldLocation.TileX, worldLocation.TileZ, worldLocation.Location.X + (float)((Viewer.Random.NextDouble() - 0.5) * ParticleBoxLengthM), 0, worldLocation.Location.Z + (float)((Viewer.Random.NextDouble() - 0.5) * ParticleBoxWidthM));