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 Dec 05, 2013 at 01:37 AM by clunk47 for the following reason:

The question is answered, right answer was accepted

avatar image
0
Question by TheRichardGamer · Aug 09, 2013 at 05:33 PM · bulletgunruntime-error

Bullets getting stuck in air

Hi, I have a annoying problem with my bullets; whenever I fire my gun the bullets go off like normal, but some of them get stuck at either the players position, or a bit ahead of the players position. Does anyone know the cause of this?

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 gardian06 · Aug 09, 2013 at 07:09 PM 1
Share

are the bullets being put to sleep (rigidBody.sleep()), or are they supposed to be turned off (or even destroyed)?

what was causing them to move in the first place? (transform modification, or physics)

avatar image gardian06 · Aug 09, 2013 at 09:25 PM 2
Share

would it be possible for you to simplify your scripts (so that you can put them up) and they duplicate the error, and give a step-by-step instructions of how to duplicate this. I do not see enough information here to give a meaningful answer.

1 Reply

  • Sort: 
avatar image
3
Best Answer

Answer by clunk47 · Aug 09, 2013 at 05:37 PM

Have a look at Physics.IgnoreCollision

 Physics.IgnoreCollision(this.collider, other.collider);    

Comment
Add comment · Show 3 · 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 TheRichardGamer · Aug 09, 2013 at 06:45 PM 0
Share

That didn't really work, because my gun doesn't have a collider attached to it.

avatar image clunk47 · Aug 09, 2013 at 07:39 PM 1
Share

Then use IgnoreCollision so that bullets don't collide with other bullets, and so that bullets don't collide with your player's collider, if neccessary. You can also use IgnoreLayerCollision, so that bullets don't collide with anything on the same layer they're on.

avatar image clunk47 · Aug 10, 2013 at 07:06 PM 1
Share

Have you tried the latter solution?

Follow this Question

Answers Answers and Comments

16 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

Related Questions

Best way to make a gun? 1 Answer

how to make my gun not fire while paused 2 Answers

How to add Bullet Velocity 1 Answer

how do i make a gun 1 Answer

Help with script 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