cocos-engine
cocos-engine copied to clipboard
node.worldScale has faulty logic
Cocos Creator version
3.6.0
System information
Chrome
Issue description
Set the world scale and print it, then get a different value? That's weird.
this.child.worldScale = new Vec3(1, 1, 1);
console.log(this.child.worldScale);
Relevant error log output
No response
Steps to reproduce
Reproduce project, press key 'A' on PC Chrome. NewProject.zip
Minimal reproduction project
No response
This function is normal. After setting worldscale, the transform will change, and the final value obtained will change with the transform
Cocos engine: update scale at the api of updateWorldTransform