Author Topic: Forcing a player to equip a brick?  (Read 1001 times)

so, you can search through the brick groups based on position? handy
also, does this mean that you can get a specific position based on where the camera is pointing? at the ground/bricks/air (with a max distance)
you can get your players coordinates, and you can get the direction they're looking, and you can get the distance between the eye point and the target

serverConnection.getcontrolob ject()

Don't know about the angle, but I'm positive it's possible

getFocusDistance()

then math

just making sure that the coordinates from the player match up with the bricks
i wouldn't be surprised if they randomly didn't

just making sure that the coordinates from the player match up with the bricks
i wouldn't be surprised if they randomly didn't

position looking at is not position of the brick
it would get a position on the side of the brick/interior/terrain that the player is focused at.

true, but from where it lands you could add a little bit more to the vector then round it to the nearest center brick grid area?
and how would you find if a brick contains a specific point? because nearest might not work if there's a 64*64 cube which you're looking at, and a 1*1 brick next to it