What were you trying to do, what did you expect to happen?
I'm working on a soccer game where the ball entity is attached to the player when they have possession. I wanted to set and remove the player as the parent entity of the ball when gaining and losing possession. I found a different way to handle this without setting the ball as a child but I wanted to report this for awareness.
What actually happened?
The scale of the ball model decreased it's size once it was attached to the player. It seems like the scale of the player entity is also being applied to the scale of the child entity after it's attached.
To Reproduce
Create an entity with a less than 1 model scale, create another entity with any scale and spawn both entities in the world. By some action in game, add the second entity as a child entity of the parent and the size of the child entity will change. In this example I had the player model scale set to 0.5 and the ball scale set to 0.25. See video below. Last tested on hytopia package version 0.1.99.
Screenshots
https://github.com/user-attachments/assets/c3ac8482-b871-4e27-8704-d323c9105af6
What were you trying to do, what did you expect to happen?
I'm working on a soccer game where the ball entity is attached to the player when they have possession. I wanted to set and remove the player as the parent entity of the ball when gaining and losing possession. I found a different way to handle this without setting the ball as a child but I wanted to report this for awareness.
What actually happened?
The scale of the ball model decreased it's size once it was attached to the player. It seems like the scale of the player entity is also being applied to the scale of the child entity after it's attached.
To Reproduce
Create an entity with a less than 1 model scale, create another entity with any scale and spawn both entities in the world. By some action in game, add the second entity as a child entity of the parent and the size of the child entity will change. In this example I had the player model scale set to 0.5 and the ball scale set to 0.25. See video below. Last tested on hytopia package version 0.1.99.
Screenshots
https://github.com/user-attachments/assets/c3ac8482-b871-4e27-8704-d323c9105af6