• 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 Craig Farrell · Sep 24, 2010 at 09:30 PM · gameobjectphysicsmodel

Best way to tear apart a piece of paper?

Remember the game at the carnival that allowed to you shoot a bb gun at a target with the red star and if you removed the entire red star from the paper target you won a prize?

I'm working on that game.. major stumbling block for me.. how do you tear apart the paper?

I have a couple of ideas, but neither really seems that good. 1) pre-tear up the paper and piece it together and allow them to take it apart - seems to static, not random enough 2) where the bb's hit, make a black dot on the paper (really thin cube primitive likely) - not realistic or that fun since the paper wouldn't tear..

Any other ideas?

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

1 Reply

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

Answer by spinaljack · Sep 24, 2010 at 09:36 PM

Make the paper out of many triangles, where the bullet hits fade out the alpha on those verts so that you can see through the paper, instantiate paper tear models around the hole.

Then when the 2nd shot is fired check if it is next to a previous hole and then join them up to make a bigger hole so you don't end up with loads of tear models floating about.

You can use raycast to return which triangle was hit:

http://unity3d.com/support/documentation/ScriptReference/RaycastHit-triangleIndex.html

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 Craig Farrell · Sep 25, 2010 at 02:29 AM 0
Share

Sounds interesting.. So I would create a sheet of tiny triangles in a 3d modeling program and import it? (I use blender) Then play with its alpha to make it look like the triangle has been shot out.. what do you mean by "instantiate paper $$anonymous$$r models"?

avatar image spinaljack · Sep 25, 2010 at 02:50 AM 1
Share

I think the basic unity plane is already made up of triangles but you can do it in a modelling software if you want. The paper $$anonymous$$r models would be bits of paper hanging off, it's up to you if you would prefer no bits of paper hanging off. Also Unity 3 will have cloth physics so you can actually $$anonymous$$r bits off with physics :)

avatar image Craig Farrell · Sep 25, 2010 at 01:05 PM 0
Share

Very cool! Can't wait for Unity 3 :)

avatar image Craig Farrell · Sep 25, 2010 at 01:28 PM 0
Share

Ack, won't let me close this thread...

avatar image Peter G · Sep 25, 2010 at 08:11 PM 0
Share

$$anonymous$$ark the answer correct, and it will signal that you did.

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

No one has followed this question yet.

Related Questions

How to store player model and then swap the model to an object I Raycast hit? 0 Answers

Imported 3D models collisions 1 Answer

Melee-like function? 1 Answer

How to code anywhere below -10? 1 Answer

Why my character falls down? 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