*im new* Why are my collisions not colliding?

Godot Version

4.3 win64

Question

ive placed the collision boxes as i see everywhere they get used in tutorials, but for some reason i still clip through everything?
image

The function translate_object_local() works directly with the node’s position, which you aren’t supposed to do if this script is attached to CharacterBody3D. Use move_and_slide() or move_and_collide() instead.

See also: Using CharacterBody2D/3D — Godot Engine (stable) documentation in English

1 Like

those just work the same as translate_object_local in this case then, but allow physics collisions?

Basically, yes. You set the velocity vector, and Godot calculates the movement, including all collisions.

uh both of those give an function not found in base self error? @FencerDevLog

Does your script extend CharacterBody3D? The page I linked contains several examples of the basic usage.

2 Likes

aha, but can i/how do i make this work with local axes? it just moves on the global axes…