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 /
This question was closed Jan 01, 2014 at 11:48 PM by Carbongrip for the following reason:

Don't want the thread anymore

avatar image
0
Question by Carbongrip · Dec 20, 2013 at 09:49 PM · c#rotationtransform.rotate

Rotation for set time?

Hey all how can I make the following turn to a certain point then stop turning?

 transform.Rotate(0, turnSpeed * Time.deltaTime, 0 * Time.deltaTime, Space.World);


reason being is that this is for a ship ai segment when the ship runs away… so it turns away then just goes forwards from there till told to stop.

also any ideas on how to make the ship circle around its target a set distance? so basically it would sit and circle the target firing its weapons till told to stop.

Comment
Add comment · Show 3
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 Benproductions1 · Dec 21, 2013 at 09:12 AM 0
Share

Love the 0*Time.deltaTime... ???

avatar image ozturkcompany · Dec 21, 2013 at 09:17 AM 1
Share

cannot understand what you are asking for.Would you re-write your question pls?

avatar image Carbongrip · Dec 22, 2013 at 04:27 AM 0
Share

How do I make it turn only to a certain point say rotate 180 degrees right and stop?

1 Reply

  • Sort: 
avatar image
0

Answer by TimBorquez · Dec 23, 2013 at 03:27 PM

you could lerp the rotation

Comment
Add comment · Show 4 · 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 Carbongrip · Dec 23, 2013 at 05:30 PM 0
Share

hmmm that kind of looks like it would work but not really sure about how I would use it in a transform rotation? could you provide a example?

avatar image TimBorquez · Dec 23, 2013 at 06:05 PM 0
Share

oh sorry you want quaternion lerp i think

avatar image Carbongrip · Dec 23, 2013 at 06:09 PM 0
Share

ok… so what would I make from and to?

avatar image TimBorquez · Dec 23, 2013 at 06:28 PM 0
Share

the bottom example here is a good rotation example

on the quaternion example, from is your object, to is the rotation you want to rotate to

Follow this Question

Answers Answers and Comments

20 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

Related Questions

Flip over an object (smooth transition) 3 Answers

Creating the After Effects Wiggle expression to effect rotation in C# 1 Answer

Distribute terrain in zones 3 Answers

Multiple Cars not working 1 Answer

transform.Rotate is rotating all axes, why? 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