Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Pitanov V.V. |
Good day!
If an object moves very slowly, it gets stuck!
If the object moves quickly, it gets stuck in the corners!
var motion : Vector2 = velocity * delta
var collision = move_and_collide(motion)
if collision:
emit_signal("collision_body", collision.collider)
if is_block_and_no_collide(collision.collider) : #chek block
return
velocity = velocity.bounce(collision.normal)
direction = velocity.normalized()
#минимальный угол
is_platform_and_collide(collision.collider) #fix reflect
Video, SLOW: https://youtu.be/TUbhKTp2zOU
Viduo, FAST: https://youtu.be/oUTCU7Sr_j0
BUMP!
The problem is still relevant!
Pitanov V.V. | 2019-04-12 06:04