rotating mesh snippet for threejs_playGnd
This file contains 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
/* ------------------- INSTRUCTIONS ----- | |
to rotate a mesh | |
add the code below to your draw() function | |
mess with the numbers to change the speed | |
-------------------------------------- */ | |
mesh.rotation.x = Date.now() * 0.0005; | |
mesh.rotation.y = Date.now() * 0.0002; | |
mesh.rotation.z = Date.now() * 0.001; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment