Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 infernalboy · Dec 27, 2015 at 10:10 AM · x-axisgrouprotatearoundpivot

i have a problem roating a group of objects

I am trying to make a car with a mounted gun but, before trying to code the rotation following the mouse (think that i dont know how to do it but that dosent matter) i have to test the rotation of it.

This... car is made only with unity parts.

I can rotate the gun horizontaly with the yellow cilinder but for vertical rotation i am using a game object and rotates like this: alt text

Now i group those parts on the wellow cilinder to allow horizontal rotation and happens this: alt text

Do you know how i can fix this or what i am doing wrong? Thank you all

unity1.png (498.9 kB)
unity2.png (515.3 kB)
Comment
Add comment
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

1 Reply

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

Answer by mikelortega · Dec 28, 2015 at 12:23 PM

The problem is with the scale. The Yellow cylinder probably has a scale transformation, then when you make the torreta it's child, it gets an scale transform to look good... But then you cannot rotate it.

Try to make the cylinder scale 1,1,1. If that's not posible, create a new game object, make the cylicnder and the torreta it's children and transform independently. This way everything will be easier.

Cualquier duda, pregunta sin miedo ;)

Comment
Add comment · Show 2 · 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 infernalboy · Dec 28, 2015 at 04:36 PM 0
Share

$$anonymous$$il gracias :) Al final toque$$anonymous$$ndo tamaños y metiendo la rotación torreta y sus hijos dentro de deposito ahora el cañon gira bien.

Gira bien hacia arriba (Y) para el cañon: alt text

Y gira bien hacia los lados (X) con el cilindro o el depósito mismo: alt text

$$anonymous$$uchas gracias. Ahora me falta poner físicas al coche y hacer que el cañón se mueva con el ratón. Pero eso ya me ocuparé yo. $$anonymous$$il gracias de muevo :) (uupps.. no se vé el terreno de picos de montaña que puse xd)

unity3.png (365.1 kB)
unity4.png (418.6 kB)
avatar image mikelortega infernalboy · Dec 28, 2015 at 04:46 PM 0
Share

$$anonymous$$uy bien, no es exáctamente lo que te proponía, porque las transformaciones de escala en la base te pueden dar problemas con la forma de los hijos. Pero parece que has llegado a una buena solución. Saludos.

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

iTween moving all children the same way the parent object does 0 Answers

Is this a correct (efficient) way of selecting and handling units? 0 Answers

Separate objects from GameObject[] group 0 Answers

is there a way to make a grid layout group instantiate children top to bottom instead of left to right? 1 Answer

Cube Rotation Problem 0 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