Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getting direction / place to build by placing and destroying a kind of block #7

Open
mr-eggleton opened this issue Apr 4, 2017 · 1 comment

Comments

@mr-eggleton
Copy link
Contributor

mr-eggleton commented Apr 4, 2017

Orentation may be tricky and could involve a rotate about a point function for Vec3 points

@mr-eggleton
Copy link
Contributor Author

use the destroyed brick pos as 0,0,0 for the local build away using the face as touching (0,-1,0)

there is a direction vector (-/1,1,-/1) depending on the face to make it point away

destoryedPos + (localPos * direction vector)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant