Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 Duxten · Jan 31, 2013 at 11:30 PM · charactercontrollerrotateshootaround

Make a character rotate around a point.

Hi

I want to create a game where the character is placed in one specific point and only can rotate around it and shoot (something like bubble shooter games)

I tryed with joints and transform.RotateAround with no successfull results.

So any one has an idea on it??

Regards

Comment
Add comment · Show 1
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 robertbu · Feb 01, 2013 at 12:28 AM 0
Share

How is the rotation going to be controlled. By the mouse? By the script...?

1 Reply

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

Answer by thenachotech1113 · Jan 31, 2013 at 11:50 PM

so if you want it to orbit around a given pointdo this: you will need 2 objects, an empty one that will be the orbiting point (i will call this object A)and the one that you want to orbit (this one will be object B). start by placing object A were ever you want it to be, and object B at the place were you want the orbit to start, then parent obect B to object A and place a script on object a that looks something like this

 transform.Rotate("write a nuber here if you want it to rotate arround the x axis else leve 0", "a nuber here if you want it to rotate around the yelse leve 0", and an number here f you want it to rotate around the z axis else leve 0") 


the greater the nuber is the faster it will rotate

and if you want it to just spin around one of ots axix add the script to the object its going to spinn.

sorry if i was a little unclear im not good at explaing hope you understand and if not leve a comment and i will try to explain a little better

Comment
Add comment · Show 1 · 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 Duxten · Feb 09, 2013 at 05:01 AM 0
Share

Nice It totally works !!! Thks

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

10 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

Related Questions

Animation Returns to previous state after timeline 0 Answers

Rotate Character Controller 1 Answer

How can i make my simple character controller rotate? 0 Answers

Character Flying around uncontrollably 2 Answers

How to get my rigidbody character to orient rotation to a game object 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