josdirksen / learning-threejs

Code repository for the examples from the Packt book "Learning Threejs"
3.1k stars 1.27k forks source link

Update call to width and height of planeGeometry #7

Open jochasinga opened 9 years ago

jochasinga commented 9 years ago

Chapter-02: planeGeometry.width and planeGeometry.height return undefined as of r69 thus resulting in NaN in cube.position.x and cube.position.z

Fixed to planeGeometry.parameters.width and planeGeometry.parameters.height