- Home /
what are the ways to attach objects
What are the ways of attaching projects to other objects except SetParent? I need it with the help of the attachment script to another project as if it is always off!
"Attach" can mean a lot of other things, I think you will have to describe the effect you want to achieve, if you want a useful answer.
I have a transport and an object, I need to connect an object and a transport with the help of a script so that where transport does not go the project always beat with it!
Answer by tormentoarmagedoom · Jan 29, 2019 at 08:17 AM
Make the object child of the transport. They will move as 1 single object
Though if the child also has a rigidbody you want to set it to is$$anonymous$$inematic when attached, otherwise it will move off the transport due to physics.
This option disappears as when turning the child object is distorted, I just can not understand in any way just how to properly scale the transpose!
Ok, so I think I know what your problem is here. If you want to rotate an object, it has to be childed to a uniformly scaled object. So your solution here is to create an empty game object with scale (1, 1, 1), child this to your vehicle and then child your cargo to this empty object.
Uniform scale means a scale where x == y == z. In Unity if you rotate a child of an object that is NOT uniformly scaled, it becomes distorted. It's a lot of explaining why, but that's just how it is
I know this problem, so I decided to beat it! the problem is that I have 1,1,1 vehicles, but the part is the motor, the door, the pipe, the steering wheel, the lights, they have their own scale, I just don’t know how to properly propel it!
Your answer
Follow this Question
Related Questions
How to turn the steering wheel 0 Answers
rotation of the object to a given angle 1 Answer
turning a project using AddTorque 0 Answers
problem with rigidbody.position 1 Answer