http://thewyldturkees.com/game/Blitz_Gravity_Help.zip
Hello all. For the last couple of weeks I've just been making random stuff to learn about and experiment with blitz. So here I have a .3ds terrain mesh made in FreeWorld3D textured with one collapsed image (of the texture splatting done in FreeWorld3D.) I've been working on gravity recently and I would like to know if I'm coding it anywhere near to a standard... it seems to simulate pretty well but I have one major problem: If you stand still, you'll notice that the downward gravity is being triggered even though I've asked it nicely to not push down when your on the ground. I'm using an invisible cube to act as the feet of the camera. The "feet cube" is used as the trigger for gravity when there's no collisions with the terrain. If you "un-comment" the line that sets the cube's alpha to 0, you'll be able to see the cube in action.
So. All coments welcome. If I'm totally off on this whole gravity simulation thing, please tell me a better way! :-P
Thanks,
Matt
PS -
";#Region and ;#End Region"
Is a feature of Protean (a 3rd party blitz IDE) that lets you collapse areas of your code.
Hello all. For the last couple of weeks I've just been making random stuff to learn about and experiment with blitz. So here I have a .3ds terrain mesh made in FreeWorld3D textured with one collapsed image (of the texture splatting done in FreeWorld3D.) I've been working on gravity recently and I would like to know if I'm coding it anywhere near to a standard... it seems to simulate pretty well but I have one major problem: If you stand still, you'll notice that the downward gravity is being triggered even though I've asked it nicely to not push down when your on the ground. I'm using an invisible cube to act as the feet of the camera. The "feet cube" is used as the trigger for gravity when there's no collisions with the terrain. If you "un-comment" the line that sets the cube's alpha to 0, you'll be able to see the cube in action.
So. All coments welcome. If I'm totally off on this whole gravity simulation thing, please tell me a better way! :-P
Thanks,
Matt
PS -
";#Region and ;#End Region"
Is a feature of Protean (a 3rd party blitz IDE) that lets you collapse areas of your code.