Created
July 25, 2018 15:27
-
-
Save cazala/7fadb84ae6b674f77a0ca542aa9c813c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
renderIdle() { | |
const { playerWhite, playerBlack } = store.getState().match | |
return ( | |
<entity> | |
<gltf-model | |
src={modelsById['Q']} | |
id="register-white" | |
position={{ x: 3.5, y: playerWhite ? 1 : 0, z: 5 }} | |
/> | |
<gltf-model | |
src={modelsById['q']} | |
id="register-black" | |
position={{ x: 6.5, y: playerBlack ? 1 : 0, z: 5 }} | |
/> | |
<text | |
value="Choose your color" | |
color="#000000" | |
position={{ x: 5, y: 2, z: 5 }} | |
width={3} | |
billboard={7} | |
/> | |
</entity> | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment