0 votes

I'm trying to simulate an ice floor for my character but I can't figure out how to achieve that using kinematicBody2D

this is my player script:

func _physics_process(delta):
    direction.y += gravity_speed * delta

    # vertical movement

    # horizontal movement
    direction.x=Input.get_action_strength("ui_right") - Input.get_action_strength("ui_left")
    direction.x *= horizontal_speed


and I made a StaticBody2D and gave it 0 friction in physics material override:

enter image description here

And it seems to work with Rigid bodies but not with KinematicBody2D,
I thought move_and_slide() should take care of this?

So how do I get my character to slip on certain grounds?

Godot version 3.5
in Engine by (99 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.