Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 Allmightysmiter · Dec 09, 2016 at 06:18 AM · velocitydragmasscollision issues

Collision causes object to fly away at high velocity

I have a game where the user can fly a ship into islands to destroy them. When the ship collides with any of my islands, the island will seem to disappear but after further investigation, I observed the island just moves extremely far away instantaneously and then stops. I've changed the mass and drag but they don't seem to be having an effect. Why is collision adding so much force?

This is the ship object alt text This is the Island object, the mass and drag are set to 100 in the code alt text This is a link to the apk to test out. link text

shipmodel.jpg (493.3 kB)
islandmodel.jpg (475.4 kB)
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 Link0n3 · Dec 09, 2016 at 01:12 PM 0
Share

Why don t you set kinematic to be true? Do you expect the islands to actually drift away?

avatar image Allmightysmiter Link0n3 · Dec 09, 2016 at 06:22 PM 0
Share

I don't set kinematic to be true because i want the ship to be able to collide/interact with the islands and move them around. If the player bumps into an island it should move and then decrease velocity, eventually co$$anonymous$$g to a stop, but changing the mass and drag doesn't seem to effect how far an island is pushed. Does that answer your question?

1 Reply

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

Answer by Bieere · Dec 11, 2016 at 10:19 PM

If you want collisions to occur, the ship cannot be kinematic, as that assumes you are controlling how the collisions are functioning. Change the ship to non-kinematic, and change the velocity within a fixedUpdate() if you want collisions to function how you mentioned.

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 Allmightysmiter · Dec 13, 2016 at 03:19 AM 0
Share

Thank you, I did miss making the ship kinematic, this helped me realize that I also still had a capsule collider on my water plane, which was causing the strange effect on my islands.

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

6 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Problems with rigidbodies 2 Answers

Rigidbody loses speed 1 Answer

Predicting trajectory using Equations of Motion considering drag & Magnus effect 0 Answers

What is drag and velocity measured in? 3 Answers

How do I detect the percentage of velocity lost due to cumulative colissions? 0 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