Imagine jumping on a running train, And we want to move inside the train in march, How to do it if the train moves with physics and the character also ??
Just spit balling here, but what about if the player collides with the floor of the train, check the velocity of the train and combine that with the player input to get the velocity at which the player moves? I’m not sure how that impacts your jump once you’re in the air though.
But I have to be able to move over it.
This thread might answer the issue for you better:
One good way to do that and use way less computing power, is to do it the way they did it, in Resident Evil Zero on game cube. ![]()
Keep the train stationary, but let the environment and the train tracks move.
In simpler words, the train does not move, but the railway tracks and enviroment does. Making it appear, that the train, is moving.![]()
Doing it that way, it’ll be easier to control your character, and make him/her, move through the train with ease and less hassle. And you wouldn’t have to rely, on using too much physics. ![]()
They did something similar, in the cool train stage, at the start of the game
Evolution 2 Far Off Promise. A cool Jrpg on the dreamcast. ![]()