I’ve been toying around with trying to achieve a localized physics simulation for a project, somewhat similar to what Star Citizen is doing Local Physics Grids but in a simplified format (no need for other objects to behave)
The basic test is, use an on-rails platform that will roll and twist at odd angles and move along a preset course.
The player meanwhile needs to be able to walk around on said platform while it is in motion and be unaffected by the overall motion,
as though the platform were standing still and the world moved around the platform.
The best approach I’ve had so far has been to attach the player to the platform,
this works as long as the platform is not moving because the engine will over-compensate and send the player flying in the direction of the platforms forward motion.
Rotation at odd angles is unaffected however and works as it should.
A more visual example of this is a player standing in a ship that is flying around and still being able to walk while it is doing so.
Can anybody come up with a solid way around this problem or a completely novel approach?
Think of it as a challenge, if you can figure out how to do this you can make amazing things.