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
0
Question by ninjaboynaru · Nov 12, 2012 at 05:16 AM · colliderobjectspin

Object spins out of control

When I move my object called gun into another object called wall and they collide gun spins out of control into space. Both objects have box colliders and rigid body's.

I would like for wall to act as a barrier so gun can not move out of bounds, and it dose but the spinning wildly into space is not a desired effect. Also I have tried freezing the rotation on the rigid body but then it just goes in a random direction on the x,y,z axis. Freezing position did not work either.

Thanks in advanced

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 IgnoranceIsBliss · Nov 12, 2012 at 05:26 AM 0
Share

So you've got a collider on the CHILD of your object, but not on the PARENT?

Normally you'd do that the other-way around - just make the parent objects collider large enough so that it also covers the gun.

So your capsule, sphere or box colliders would be big enough to fit the parent AND child. Then there isn't a problem.

avatar image ninjaboynaru · Nov 12, 2012 at 03:26 PM 0
Share

Parent of what child, do you mean the gun. If so I have put a collider on the gun and then a collider on the parent pf the gun that is bigger than the guns collider, still spins out of countrol wildly

1 Reply

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

Answer by ninjaboynaru · Nov 12, 2012 at 04:04 PM

Thanks for trying to help. I got the solution.

I removed the rigid body from the wall so it only had a box collider and the gun had a collider and a rigid body. When they collided nothing when flying into space.

This is probably why only the player should have a rigid body and not the scenery.

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

10 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

Related Questions

Object Carry 0 Answers

how to check if one object is colliding with another 1 Answer

Enable objects to enter the trigger 2 Answers

problem with collider 1 Answer

Script to move an objects position and rotation upon collision with player? 1 Answer


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