The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates.

godotengine.org | Twitter

0 votes

So basically I want to make a Jenga game in a 3D space.

I have made a surface and I have placed a block upon it in 3D. I have a camera rig so that I can use the right mouse-button to click-drag the camera position around the surface and view it from different angles.

Now I just want to use the left mouse-button to move the blocks around.

I have read about the raycast in the Godot Document and tried following many different tutorials but none have worked for me so far.
This is my second attempt at a Godot game, and my first 3D game, so I still have some trouble with grasping everything...

For those who don't know Jenga;
You have 3 blocks (dimensions for example 12x2x4) laying lengthwise side by side. Another layer of 3 blocks are placed on top of the previous 3, but now turned 90 degrees. Alternating layers are stacked upon each other until you have a tower of however many layers desired.
The players will have to remove one block from the tower (except the top layer) per turn and place the block on the top in the alternating pattern, without toppling the whole structure.

Godot version Godot v3.4
in Engine by (19 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.