- What do you want to achieve? Keep it simple and clear!
I want to make a switch track for a train which is handled locally.
Because the trains don’t collide with each other, 2 may use the switch at the same time, but the switch needs to work for each train individually. The trains are physics based and so work by colliding with the rails in the switch to push them in the correct direction.
- What is the issue? Include screenshots / videos if possible!
The train derails despite the local script successfully setting the rail collision to false and the train’s NetWorkOwner being set to the player.
Is there any way to set the collisions between 2 server-side objects locally?
- What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I could try setting collision groups locally or creating NoCollision constraints between every glider of the train and rail but I’d like to know if there’s a better way of solving this.
[EDIT:] I’ve now tried collision groups, unfortunately, this means that if a train tries to use the next switch before it’s finished crossing the 1st, it can trigger the previous and derail.