0 votes

Hello people,
I've got a really annoying problem: I'm trying to make some test for the character movement and I found out that even with moveandcollide if the kinematic body has a velocity of 28.990 or less (without delta) it will slide when colliding with a static body.

# Called every frame. 'delta' is the elapsed time since the previous frame.
func _physics_process(delta):
    var collision : KinematicCollision2D = null;
    var velocity : Vector2
    var speedDeltaOk = 1738.2 #stop sliding at this speed
    var speedOk = 28.97 #stop sliding at this speed
    var speed = 28.00

    velocity = Vector2(speed,0)

    collision = move_and_collide(velocity, true, false)
in Engine by (15 points)

I cannot reproduce this. Works fine for me. Can you provide an example project?

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.