Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | coolhatboy |
Hello, I am on my second day of learning Godot 4 and I’m, having a problem with collision.
The RigideBody2D is being moved by a PathFollow2D, but it does not seem to move the CollisionShape2D child node of the RigidBody2D. When I run the game, the RigidBody2D moves on the correct path for the PathFollow2D but seemingly has no collision, but when I move an Area2D (Player Node) into where the CollisonBox2D started, it collides. (When collision is detected the Player character hides.)
This is the script for the PathFollow2D
extends PathFollow2D
@export var slither_speed = 20
func _process(delta):
set_progress(get_progress() + slither_speed * delta)
Here is a video of the problem.
Thank you to any help you can provide! Please let me know if I can offer more relevant information.
Scene Tree image and PathFollow2D image as hyperlinks in case I didn’t format the images correctly in the original post.
coolhatboy | 2023-03-27 00:37