mcdonaldduncan / Freebooter

Columbia College Chicago Senior Capstone
4 stars 0 forks source link

Train Attachment Logic Rework #308

Open mcdonaldduncan opened 1 year ago

mcdonaldduncan commented 1 year ago

The train will cause strange logic when the player gets attached to multiple at one time. I am going to look into tweaking that logic

fatjosephina commented 1 year ago

It seems the player will detach from the train/moving platform whenever they collide with any collider that is not the moving platform's collider. The main time when this happens is with the doors. However, I can get around this by removing the collider from the door and having a player boundary child object. Let me know if you don't have time for this issue and I'll implement that.

Ideally, the player should never touch multiple train cars at the same time anyways, but due to some collider stuff and the trains shifting position slightly when they respawn, it happens. However I spaced the train cars out more so that it shouldn't happen as often, however it still occurs a bit especially when turning corners.