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 Jesterhead0302 · Sep 11, 2013 at 04:26 PM · rotate objectmove an object

Rotating an Object while Moving

I am trying to create a game that is 2.5D with an isometric camera that will look down on the player moving a top like object that will rotate repeatedly while the player moves the object left/right/up/down. Is it possible to rotate an object repeatedly while adding moving the object in various directions? If so, could you help explain how? Thanks

Comment
Add comment · Show 2
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 Spider_newgent · Sep 11, 2013 at 05:29 PM 0
Share

Hi

Not sure exactly what you mean. Do you mean that the object is part of the player, like a little radar dish on top of him that spins constantly whilst he moves, or do you mean that you want the player to able to push the object around it's centre point like a merry-go-round?

It is possible to rotate and move an object independently so shouldn't be a problem.

avatar image Jesterhead0302 · Sep 11, 2013 at 06:01 PM 0
Share

The player is the rotating object. Like a top that is constantly rotating that the player will control. How do you rotate an object constantly while moving the object.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Spider_newgent · Sep 11, 2013 at 06:03 PM

it's one thing getting an object to rotate constantly on one axis, and quite something else to get it to realistically behave like a spinning top. Presuming you just want it to rotate on the y axis, this script will basically do it.

 var speed:float=3.0;
 
 function Update () {
      transform.Rotate(0,speed / Time.deltaTime , 0); 
 } 

Incidentally, searching the forum for "automatically rotate an object each frame" would have found you the answer, for future reference.

Hope that helps.

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 GC1983 · Sep 11, 2013 at 07:40 PM 0
Share

spacehttp://answers.unity3d.com/questions/204110/rotating-my-character-only-while-moving-in-a-2d-pl.html

Or just simply animate the rotation.

avatar image GC1983 · Sep 11, 2013 at 07:41 PM 0
Share

You havent fully answered their question. You responded only how to rotate, not rotate AND move.

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

19 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

Related Questions

Issue moving Object around surface of sphere 3 Answers

Is it better to make the Player in FPS be a Rigidbody or a characterController? 1 Answer

Two problems One code 1 Answer

Object Rotating around center from Mouse Movement 1 Answer

Object rotating around object at two levels 1 Answer


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