3D collision issue

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By halcaponey
:warning: Old Version Published before Godot 3 was released.

I just started godot, I’m working on a 3D game and I’m having difficulties with collision

My scene goes like so :

root node(Spacial)

    wall (staticbody)
        (sprite3d)
        (collisionshape)

    player (kinematicbody)
        (Camera)
        (collisionshape)

I move the player with self.translate

The issue is that the player pass right through the wall

I’ve tried using self.move insted but I cant move the player, I got errors during execution :
“State space is inaccesible right now, wait for iteration or fixed process notification”

I must be missing something but what ?

:bust_in_silhouette: Reply From: Hinsbart

Have you read the 2D physics tutorial? Most of it also applies for 3D.
In short, if you want to interact with physics, do it in _fixed_process(delta) instead of _process(delta).

move() should work as expected then.

Hadn’t seen that part, it works, thanks.

halcaponey | 2016-02-26 12:08