Cocos Creator 3.8.5 forum version [12.04]
Cocos
DECEMBER 18, 2024
Ive just experienced a potential bug of 3.8.5 Executing these 2 simple lines of code const testVec3 = v3(0.0058, 0.011, 0.001); console.log(`testVec3 = ${testVec3} // toString=${testVec3.toString()} // JSON.stringify=${JSON.stringify(testVec3)} // x,y,z = ${testVec3.x}, ${testVec3.y} / ${testVec3.z}`); I got this result testVec3 = (0.01, 0.01, 0.00) // toString=(0.01, 0.01, 0.00) // JSON.stringify={"x":0.0058,"y":0.011,"z":0.001} // x,y,z = 0.0058, 0.011 / 0.001 It made me confused a while &
Let's personalize your content