The first way that we can control a sphere is to describe how big it is. When we said new THREE.SphereGeometry(100), we created a ball whose radius was 100. What happens when you change the radius to 250?
|Â»||âvarâ shape = ânewâ THREE.SphereGeometry(250);|
|âÂ||âvarâ cover = ânewâ THREE.MeshNormalMaterial(flat);|
|âÂ||âvarâ ball = ânewâ THREE.Mesh(shape, cover);|
This should make it much bigger:
What happens if you change the 250 to 10? As you probably guessed, ...
Get 3D Game Programming for Kids, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.