Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Trild123787898 · Jan 28, 2019 at 05:41 PM · rotationtransformscript.object

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!

Comment
Add comment · Show 7
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image TreyH · Jan 28, 2019 at 06:57 PM 0
Share

What does "attach" mean here?

avatar image Trild123787898 TreyH · Jan 28, 2019 at 07:34 PM 0
Share

vibe! the word tie probably better suited

avatar image Casiell · Jan 28, 2019 at 07:08 PM 0
Share

"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.

avatar image Trild123787898 Casiell · Jan 28, 2019 at 07:33 PM 0
Share

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!

avatar image Casiell Trild123787898 · Jan 29, 2019 at 08:13 AM 1
Share

If those objects use physics (they have Rigidbody) you can use joints to attack the two objects together.

If you don't want to use physics or joints specifically, then you can either use parenting, or write a simple script they will constantly move your object to the vehicle

Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
4
Best Answer

Answer by tormentoarmagedoom · Jan 29, 2019 at 08:17 AM

Make the object child of the transport. They will move as 1 single object

Comment
Add comment · Show 5 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Bunny83 · Jan 29, 2019 at 10:50 AM 0
Share

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.

avatar image Trild123787898 · Jan 29, 2019 at 11:20 AM 0
Share

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!

avatar image Casiell Trild123787898 · Jan 29, 2019 at 02:49 PM 0
Share

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

avatar image Trild123787898 Casiell · Jan 29, 2019 at 03:47 PM 0
Share

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!

Show more comments

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

162 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

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

How do I replace an old gameObject with a new one while keeping the functionality of the old one?,How do I replace my current gameObject with a new one while maintaining the functionality of the old one? 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges