Edit player sliding/physics/gravity
Posted: March 23rd, 2013, 1:30 pm
Hi all,
Is there a simple or easily understandable way to modify the physics of movement and sliding in platinum arts?
My issue is that if the player ceases inputting a movement command (lets say 'w', or in my case, mouse movement in the +Y axis because mouselook = 0 in my game) the player will still move for a bit and then decelerate. When ceasing 'w' the effect is less pronounced but I'm sure you're all familiar with sliding like that. It's really exaggerated when you use mouselook = 0, and the player will still move several (upwards of 30 of the smallest editable units) when the mouse is stopped and even lifted up to totally eliminate coordinate displacement detection. As an aside, why would using the mouse make it more exaggerated?
At any rate, the problem is sliding. The solution is, I would think, to change how movement is performed via physics or gravity to reduce or eliminate sliding. Is this possible? I've tried changing the gravity from the default of 200 to 1000 but that doesn't alter sliding (you'd think it would).
Is there a simple or easily understandable way to modify the physics of movement and sliding in platinum arts?
My issue is that if the player ceases inputting a movement command (lets say 'w', or in my case, mouse movement in the +Y axis because mouselook = 0 in my game) the player will still move for a bit and then decelerate. When ceasing 'w' the effect is less pronounced but I'm sure you're all familiar with sliding like that. It's really exaggerated when you use mouselook = 0, and the player will still move several (upwards of 30 of the smallest editable units) when the mouse is stopped and even lifted up to totally eliminate coordinate displacement detection. As an aside, why would using the mouse make it more exaggerated?
At any rate, the problem is sliding. The solution is, I would think, to change how movement is performed via physics or gravity to reduce or eliminate sliding. Is this possible? I've tried changing the gravity from the default of 200 to 1000 but that doesn't alter sliding (you'd think it would).