Godot Version
4.1.1
Question
Hello, is it possible for a Characterbody2D to collide or otherwise interact with 3D scenery or are 2D and 3D supposed to be separate at all times?
4.1.1
Hello, is it possible for a Characterbody2D to collide or otherwise interact with 3D scenery or are 2D and 3D supposed to be separate at all times?
You can use SubViewport to embed 3D objects into a 2D scene. However, it will only be a projection of 3D into a 2D panel, so interactions will also be in two dimensions.
Thanks, though I am actually looking to embed a 2D 8-directional sprite into a 3D landscape/scene (so the other way around to what you mentioned) and have the 2D sprite interact with 3D objects in the scenery. Is this a possibility?
You can get a 2D position of a 3D object using the current camera:
Vector2 position = get_viewport().get_camera_3d().unproject_position(Vector3)
But I am not sure if there is a way to do something like that for collision shapes and interactions.