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
2
Question by jz87 · Dec 18, 2010 at 01:20 AM · 3ddrawprimitive

How do I draw a torus in unity?

I'm trying to figure out how to draw a torus in Unity. I would like to be able to control the large radius to small radius ratio, I can't do this with an imported 3D model because there is no way to scale the two parameters independently.

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 Twayne · Dec 18, 2010 at 04:51 AM 0
Share

If you need to create different ratio torus on the fly, then you will have to use the $$anonymous$$esh class like Eric5h5 said. You will create the points to draw the mesh.

3 Replies

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

Answer by Eric5h5 · Dec 18, 2010 at 03:43 AM

Use the Mesh class and whatever math is necessary to make a torus.

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 jz87 · Dec 21, 2010 at 11:39 PM 0
Share

I was hoping there was an easier way to do this, like a plugin or something. I guess I'll have to go with the hard way.

avatar image Eric5h5 · Dec 22, 2010 at 01:19 AM 1
Share

Actually I seem to recall that someone wrote some torus code a while ago; I just did a search and found this: http://forum.unity3d.com/threads/8487-Torus-in-Unity

avatar image
1

Answer by DaveA · May 07, 2011 at 06:09 PM

Go to the Asset Store and search 'primitive' there are at least two low-cost packs there.

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 Justin Warner · Dec 18, 2010 at 04:20 AM

Not possible... Look up the differences between a 3D Modeling software and a Game Engine. They're different, although many people don't seem to understand that...

Anyways, make it in 3D Modeling software, then import until you get it how you want it to be.

Good luck.

Comment
Add comment · Show 5 · 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 Eric5h5 · Dec 18, 2010 at 05:07 AM 0
Share

Of course it's possible, and he already explained why he can't do it with an imported model. See my answer.

avatar image Justin Warner · Dec 18, 2010 at 12:55 PM 0
Share

You can because it takes time, he's being lazy, so do you really think he's going to make a math equation in order to do it? Unlikely... It's easy to make a torus in a 3D $$anonymous$$odeling application, make 5 different versions of it, go with the closest one, or if not the closest one, keep tweaking it until you get it... It takes time, clearly something he wont take...

avatar image Jesse Anders · Dec 18, 2010 at 02:38 PM 1
Share

Regardless, to say it's not possible is incorrect. In fact, not only is it possible, it's actually pretty straightforward if you know some basic trig and have some understanding of how to work with meshes.

avatar image DaveA · May 07, 2011 at 06:10 PM 0
Share

The math is not that hard. I did it years ago for Amiga. Now I'm lazy enough to buy a plugin on the asset store for 5 bucks.

avatar image rd_mcn · Mar 12, 2018 at 12:08 AM 0
Share

Sorry but it comes with UE4 as a primitive that you can utilise in the game engine... is a bit of a broad statement to make that is not actually part of an engine because Unity does not supply it.

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

A node in a childnode? 1 Answer

iPhone game with free Unity? 1 Answer

Where Can I Download Pre-made 3D Models? 14 Answers

change to glow texture on mouse click 0 Answers

Newb friendly error x.x conversion float to int 3 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