How to create a slippery platform movement in 2D if I can't use physics materials?
I want to make a platform in my 2d game where there is a platform what should make the players movement slippery. But I don't use addforce. This is how I move my player: rb.velocity = new Vector2 (moveX * MaxSpeed, rb.velocity.y);
But if I apply a collider for a platform with 0 friction than my players movement won't be slippery. Only if I use addforce
.
Thank I wanted to modify the gravity in the Imput manager but I can't access it via script. Sooo...How can I make a platform slippery like ice?
Thanks!
Rigidbody2D rb;
void Start()
{
rb = GetComponent<Rigidbody2D> ();
rb.gravityScale = 2;
}
This does not help, and it effects the jumping too.
that's what you asked .I wanted to modify the gravity in the Imput manager but I can't access it via script.
Think about what slippery means. It means that when you want to change movement speed, the surface doesn't offer enough friction to do so quickly. If you got 'slippery movement' with AddForce, it basically means you didn't use enough force. If you want the same behavior while modifying speed directly, you have to make a system where the speed you set doesn't change directly based on input but rather slowly changes towards the value you are ai$$anonymous$$g for.
Your answer
Follow this Question
Related Questions
2D jump problem when hits wall 0 Answers
Please help with infinite gravity swapping problem 0 Answers
Ragdoll Movement Script, Help! 0 Answers
The problem with a circular 2D object (ball). 0 Answers
One 2D Raycast Not Stopping Even Though Others Do? 0 Answers