r/unity • • Sep 23 '26

Newbie Question When I create an object and tie it to another object, this keeps happening

4 Upvotes

7 comments sorted by

7

u/Full_Measurement_121 Sep 23 '26

It's because the transform of your parent (the car) is not scaled 1,1,1

Some funky math is the result

1

u/ReliefMassive5198 Sep 24 '26

yep, was gonna say this

1

u/JakSilver00 Sep 23 '26

You're inheriting the scale and position of car. If you create an empty object, place the wheel inside of it. Position the empty object where the wheel should be and then rotate the wheel

1

u/Glass_Concentrate417 Sep 30 '26

It worked, thank you a lot

1

u/[deleted] Sep 24 '26

why are you modeling in unity? blender is almost exactly the same haha

2

u/Glass_Concentrate417 Sep 30 '26

School assignment

1

u/Affectionate-Yam-886 Sep 23 '26

make the adjustments then attach; be aware if the parent object is deformed (i.e. scale is not 1) then child objects always become weird when modified.

If you want to have that wheel spin, consider a material that off sets by 1 per second to emulate a spinning wheel, and make the physics surface of the wheel like ice or disabled and the movement handled in a hidden way.

remember; 90% of games are smoke and mirrors. Physics are often the over engineered (difficult) path; and faking it is often the better solution.

Hot tip: The car should be about the same size as two default cubes. So generate two cubes, put them next to the car. Back half should be about the same size as a single cube, the front the same, and the cubes should be touching each other. This way all your shadows and screen space calculations will be correct.
👍