0 votes

Is there any way to detect which side of the block that the player is looking at by using a RayCast? My block has 6 faces, all with their unique name (eg. Top, Bottom, etc.)

Godot version v3.4.4.stable.official [419e713a2]
in Engine by (193 points)

Could you not compare the point of collision with the location of the block?

I ended up just using a RayCast, and detecting + rounding the position using the get_collision_point() method.

1 Answer

0 votes
Best answer

I ended up just using a RayCast, and detecting + rounding the position using the get_collision_point() method.

by (193 points)
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 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 webmaster@godotengine.org with your username.