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
1
Question by Thomas 1 · Aug 09, 2010 at 04:19 PM ·

Quaternion - Stuck at rotating past 180 - Use: Pendulum that rotates with user input

Hi!

I'm trying to write a pendulum that rotates with user input.

The pendulum is a child of another object. I use the parent to place the pendulum in World Space and set it's direction. The base of the pendulum is thus placed at the same point as the parent object, and is 10m long.

I have a working code with rotational gravity. It works fine. Except that the pendulum doesn't rotate a full loop, instead, it stops at 180.

Analogy: 180 = 12:00: coming from 11:55, it doesn't rotate to 12:05. Instead it stops at 12:00, even with it's angular acceleration pushing it forward. Same goes rotation counter-clockwise.

Here's the code I have working: (I attached a picture because I don't know how to paste formatted code) alt text

1: Uploaded with ImageShack.us

Any help is greatly appreciated. I'm cracking my head over this for the past week... @_@

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 Wolfram · Aug 16, 2010 at 10:10 AM 0
Share

For reference, this is a duplicate of http://answers.unity3d.com/questions/18023

avatar image Herman-Tulleken · Sep 27, 2010 at 02:33 PM 0
Share

Code is automatically formatted (just select the code, and press the button with 0s and 1s on it).

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by raiky · Sep 27, 2010 at 02:16 PM

Are you including the term: speed by time (wot)? I see that's missing. Acceleration for 180 is 0, and the pendullum remains if no speed.

Comment
Add comment · 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
0

Answer by Frip · Apr 01, 2012 at 10:00 PM

I've been trying to implement the speed by time component for this and I'm having a hard time knowing where to start. Any help would be appreciated.

Comment
Add comment · 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

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

1 Person is following this question.

avatar image

Related Questions

Constraining 2D movement to polygon surface 0 Answers

Adobe support WebGL, When Unity3D makes it too? 2 Answers

Ramp gravity 0 Answers

How to create a button on iPhone Unity? 1 Answer

hide and show gui texture problem 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