You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a prefab is instanciated, if the parent is set before the position of a 2D collider, the collider doesn't move after the instanciation of the prefab. Box2D physic engine.
Relevant error log output
No response
Steps to reproduce
const sun: Node = instantiate(this.sunPrefab);
// Random position
const x = Math.random() * 100;
const y = Math.random() * 100;
sun.parent = find("Canvas");
sun.position = new Vec3(x, y, 0);
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered:
Cocos Creator version
3.7.3
System information
Windows 11
Issue description
When a prefab is instanciated, if the parent is set before the position of a 2D collider, the collider doesn't move after the instanciation of the prefab. Box2D physic engine.
Relevant error log output
No response
Steps to reproduce
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered: