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 calypso · Mar 05, 2013 at 04:39 AM · physicsrigidbodyaddtorque

Giving a ball "english" (side spin)

I'm working on a pretty simple rolling ball physics thing. Just trying to learn some things and have some fun.

So far, I'm using AddTorque to give the ball (which has a Rigid Body and Sphere Collider) spin. This works great for getting the ball to move forward and back, but when I give the ball spin to the left or right:

rigidbody.AddTorque (Vector3.down * 10, ForceMode.Force);
rigidbody.AddTorque (Vector3.up * 10, ForceMode.Force);

The ball spins, but it has absolutely zero effect on the direction of the ball. The ball currently has a Physic Material with Dynamic and Static Friction set to 1, and Friction combine set to Maximum.

Any help is appreciated!

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 calypso · Mar 05, 2013 at 04:48 AM 0
Share

$$anonymous$$aybe I'm thinking about this wrong. Should I actually be giving it torque around the velocity vector? This would literally be "side spin", but I always thought of "english" as being spin around the Y axis, which imparts a curve to the path of forward motion.

avatar image Fattie · Mar 06, 2013 at 01:19 PM 0
Share

Calypso - you make a good point. The fact is there would be no billiards players who understand vector angular dynamics.

And it is very likely that they would use the term loosely/badly ... they may use the term for BOTH angular velocity around Y or Z (as in all video game work, we use z-forward obviously).

Scientists like you and me would more clearly describe that as angular velocity around either Y or Z. (I believe most people would call spin around X "back spin" -- but for all I know maybe billiards pos INCLUDE that as a "type of English".)

So I suggest simply forget the term English, and do what you need.

As I explain in the answer, try AddForceAtPosition

1 Reply

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

Answer by Fattie · Mar 05, 2013 at 05:21 AM

you're looking for this

http://docs.unity3d.com/Documentation/ScriptReference/Rigidbody.AddForceAtPosition.html

alternately .... very simply, add the torque you want. English means it is spinning on an axis that points upwards. So, quite simply, add torque like that! And it will spin that way.

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 calypso · Mar 07, 2013 at 01:53 PM 0
Share

I haven't had a chance to try it, since work is taking up all my time, but it looks like this is what I'm looking for. I'll update with any new info when I get to try it. Thanks!

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

11 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

Related Questions

How to rotate with a Pid controller 0 Answers

If a rigidbody is attached, should you always use AddTorque/AddRelative force for rotation/movement? 1 Answer

AddTorque from position of mouse/touch? 1 Answer

AddTorque stops working when model is vertical 0 Answers

Using Torque to kill Angular Velocity 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