- Home /
I'd like to add frictionless movment to my character with key press.
Like the Tribes series, I'd like to add "skiing". Basically, frictionless flight just above ground level to attain higher rates of travel. This affect would be useful for going down a hill, the affect would be compounded. Then, when a player releases the button, they would slow and come to a stop.
I would like to know this too, but for any answer you need to provide more information. How is your character currently controlled? Character controller or your own script? Using rigidbody and force, or transform variables? What have you done so far to achieve this?
I would like to know how to do this as well. I've been running through buzz3d's third person controller and can't seem to get an additive velocity while sliding.
you could try to add constantforce to it, If you can calculate the players movement direction by comparing his position between frames or whatever, you could override any of the character motor/character control of code that might be difficult to read through by keeping tabs of the direction it goes at and putting an equal constant force in that direction when you press the button, to make it realistic, you should put a Time counter that starts when you take off the skidding and counts down to 0 over a second or two, and it gradually lessons the constant force, if it stops to suddenly.
3rd Person controller (stock)
Rigid body (Stock)
Would rather use force rather than transform because I want physics acting on the pawn. (I$$anonymous$$ Drag, Gravity, Damage from weapons, ect.)
I've thought about adding an upward force that cancels at a certain X value as long as the button is down but have yet to test it due to my lack of coding skill. (I'm still learning and my coder is on another project for the time being. I'm just attempting to be proactive and a asset to my $$anonymous$$m.)
Answer by Montraydavis · Oct 13, 2012 at 03:31 PM
What about Rigidbody IsKinetic and Gravity false.? and then reactivate them when needed ?