Is there any way to parent an object to another object without having it modify scale?
I have the same issue, what I do to solve this in my case an arrow hitting the enemy is :
Check the object been hit scale.
Resize the arrow scale/scale been hit.
And finally parent the arrow to the enemy.
Hope this can help you
Thanks, but I can’t modify the scale of either object, one of which is the player. The way I’m getting around it is just making sure the parent object is at scale 1.
Well if you rescale the object at the scale of the parent it will preserve the ratio 1:1 aspect
Cool, I’ll try it out. Thanks man!
I had to do this for a script earlier today, actually. I had a piston with a platform attached to it. I wanted to scale the piston along the y axis, but not to scale the platform itself, so I added an empty node to parented to the edge of the piston, then added a child mesh.
Then, whenever I scaled up the piston, I scaled down the platform.
The equation is very simple:
child.scale = 1/parent.scale
If I were to scale up the object by a factor of 2, the child object’s scale will be 1/2 (.5). If I scale down the object by a factor of half, the child object’s scale will be 1/.5 (2), so this will work in both numerical directions… until you start playing around with negative scale… I’m not sure how that’s going to work.
Yes as I said if you scale the object according to the scale of the parent, the object will preserve the 1:1 aspect
I was just clarifying what you said by showing the methodology. I never managed a math course above pre-algebra until two years ago, when I was forced to move into my math courses in order to finish my degree… I have had to learn all the math on my own, as frankly, math was never a subject I learned well. I was really good at it, but I have to learn it in a different way than it’s taught.
Figure I’d extend the same hand, you know?
Also, what you said was inaccurate, technically speaking.
“scale the object according to the scale of the parent”
Technically speaking, he needs to scale the object according to the inverse of the scale of the parent.
But of course, I didn’t call you out on that, because you quite obviously implied it to anyone who knew already, but since the OP asked the question in the first place, it’s safe to assume that such a thing would not be obvious to him.
Excelsior!
I have a similar problem but I need another solution because this doesn’t work for me.
I have 4 bones parented, for example A + B + C + D. All the bones are scaled and I have diferent rotations, so I need to attach a new bone as a child of the D but i dont want to scale the new one. The problem is that the X scale value for the bone A is afecting the other bones and different axis because of the rotation, so i cant use something like 1/AxBxCx+Dx as you show in the example for each axis.
Anyone know how to solve this issue? i tried different options and still I cant find the solution.
I cant touch the properties of the other bones, i just can touch the properties for the new one.
Thanks