All I am seeing in that thread is that they have a problem with upward movement that is due to frame issues and contact, which shouldn’t be a problem with my project, but what I’m talking about is horizontal movement. Let’s say the platform is still, and the player gets on it. It moves to take them across a gap, and that doesn’t carry the player properly, moving them for a bit but dropping them if they don’t move with it.
This does somewhat help, however whenever I am on the moving platform, the character bounces up and down a bit and it causes them to fall off, which confuses me because if it is applying the velocity that the platform has to the player, why does the player not stay in the same spot while bouncing on it?
EDIT: I think it’s worth mentioning that this happens because the moving platform has a restitution of 1 so the player would completely stick to it.
So I did some messing around, found out it was a sneaky line that got past me, so I fixed that. The player now stays on the platform, but they slide from side to side on the platform, can’t move properly, and they can’t jump. Movement is extremely slow, I have tried a ton but can’t figure this out for the life of me. The exact thing I am aiming for is for the player to essentially be glued to that spot on the platform so they won’t slide around when it moves, but still be able to move themselves. I think a good example would be how ROBLOX does their physics, if you are standing on a part, you get moved with it, staying in the same position relative to the moving part.
So I looked at the post linked before again, and I remembered that this was posted on that thread. How would one go about simulating physics relative to an entity? I’m specifically looking at this sentence.
This might be hard to implement, though, as you’d need to manage moving the player from world to local grid and back.
Because I’m not sure how you would calculate it on a local grid instead of a world grid.
Sadly no, what I’m going for is kind of a more realistic look. Like, for example, if you are standing on the back of a truck and it’s moving forward, you would stay in the same spot relative to the truck. That is what I am aiming for. Another example is the synchronised physics grids that Star Citizen uses.
Yeah, this all has me stumped, I’m not sure how to get my thing to work. I do know of a good example for what I need. This video shows how the physics in Titanfall 2 work, and how moving platforms work. And while yes, it very clearly is a video about how players can manipulate them, that is something I actually want in my game. I already left an advanced technique in the wall jumping that can be used.