I used this code
And yet i still get this error
Please tell me what did i do wrong?
See the documentation → getCenter
requires a parameter.
(Hard to tell without a live example)
The getCenter() method expects a vector3 as a parameter, the result will be copied into that.
Try with the following:
Var a = new THREE.Vector3( 0, 1, 0 );
Object.geometrĂ½.boundingBox.getCenter(a)
Console.log(a)
Thanks it works