I am making a railroading game, and it would be very helpful if I could have a collision model slightly different than the visual mesh.
Consider this old railroad track:
It’s 3 blocks, with 1x1 rails set 4 studs apart and a mesh to make the rail look 0.7 studs wide.
Here is the same track, but using meshes. Instead of a 1 stud tall railbed, its now 1.5 studs, and instead of a 1 stud tall rail, I’ve used meshes to scale the rail down to 0.5 studs high. Overall, the same track. Except for one problem: the trains ride 0.5 studs higher in the air. Trains already made with 1 stud rail heights in mind cannot run on the new tracks, and there is a possibility that the train-rail interfaces in PGS will be inclined to derail more often with the shorter height.
So what are the current possible solutions?
- Use an additional brick as the collision mesh. This is undesirable because it will inflate the brick count a considerable amount in the game I am making.
- Use a Special Mesh. This is undesirable because Special Meshes cannot have textures applied to them, like the tie texture, and cannot display material textures, like the pebble texture.
- Raise the rail bricks up by 0.5 studs and offset the rail mesh to the bottom. This is undesirable because a lot of rolling stock is made for rails that are 1 stud tall and would float in the air.
- Just leave it as it is. This is undesirable because PGS physics requires balls as the interface between the train and the track, and they can probably climb over the 0.5 stud high wall for the masses I expect to be using and the trains would float in the air like the previous bullet.
None of these fit the bill perfectly, each has only two of the necessary components: small footprint, visuals, and compatibility.