this is a one way collisions, but i can use zig zag movement to pass through it how to fix that ?
Code
`extends CharacterBody2D
const SPEED = 300.0
const ROTATION_SPEED = 10.0
func _physics_process(delta: float) → void:
var direction := Input.get_vector("p1left", "p1right", "p1up", "p1down")
# Move and rotate car
if direction != Vector2.ZERO:
velocity = direction * SPEED
rotation = lerp_angle(rotation, direction.angle(), ROTATION_SPEED * delta)
else:
velocity = Vector2.ZERO
move_and_slide()`
You are not in the Godot’s Discord Server ? someone helped me for that in DC, just increased the pixel margin of One way collision by some pixels and it worked
No, and it doesn’t even tell me what channel this is on, just randomly opens whatever channel when I click on the link.
Glad you were able to solve your issue though.