http://www.balpoint.com/~squishy/dcol.zip
This is a modified version of Simon harrison's dynamic collison code. Someone asked me how to make the code allow you to walk onto a moving platform and move with it, and I coded a new function for the collision system which handles that in a basic way. I leave it to you to figure out how to apply fristion and stuff if you so desire. This basically will tell you where a specific point on the moving platform is one frame, and where it has moved to in the next. I just make the model move in the same realtive manner as that collision point for one frame after the collision if that collision point appears to be on a floor. If the models continue to collide, then it continues to stick. This works with rotating platforms as well. And you can of course move about on the platform normally as you continue to move with it.
The only thing this code needs now is the ability to scale the dynamic collision objects without breaking the collision, and the ability to collide with more than one such object at the same time. (I think that would involve translating all the copies of the colliding object at once, and determining when the first collision occured and then moving all the colliding objects to that location.)
Don't email me for support. If you have a question use the forums. :-)
This is a modified version of Simon harrison's dynamic collison code. Someone asked me how to make the code allow you to walk onto a moving platform and move with it, and I coded a new function for the collision system which handles that in a basic way. I leave it to you to figure out how to apply fristion and stuff if you so desire. This basically will tell you where a specific point on the moving platform is one frame, and where it has moved to in the next. I just make the model move in the same realtive manner as that collision point for one frame after the collision if that collision point appears to be on a floor. If the models continue to collide, then it continues to stick. This works with rotating platforms as well. And you can of course move about on the platform normally as you continue to move with it.
The only thing this code needs now is the ability to scale the dynamic collision objects without breaking the collision, and the ability to collide with more than one such object at the same time. (I think that would involve translating all the copies of the colliding object at once, and determining when the first collision occured and then moving all the colliding objects to that location.)
Don't email me for support. If you have a question use the forums. :-)