Page 1 of 1

Edit player sliding/physics/gravity

Posted: March 23rd, 2013, 1:30 pm
by wishfulscientist
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).

Re: Edit player sliding/physics/gravity

Posted: July 24th, 2013, 2:40 am
by Rotark
I do not really know but try
/gravity####
/jumpvel####
/movespeed####
/floatspeed####
????
hopefully that will help

Re: Edit player sliding/physics/gravity

Posted: July 24th, 2013, 3:50 pm
by wishfulscientist
Thanks for the reply. I'll try it out some time, but I found that I don't need this anymore because the maximum velocity the player achieves most often doesn't pass the threshold required for sliding.