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
1
Question by mechanicarts · Apr 10, 2013 at 01:57 AM · collisionrigidbodycollider

My character falls over when colliding

I have a player that has a Box collider (no need for capsule), a rigidbody with 10000 Mass, Infinity Drag, 0 Angular, no gravity.

I also have several meshes (static, props) that I only gave them Mesh/Box colliders (no rigidbodies).

When my player collides with any of the props, he starts rotating, and suddenly InputAxis horizontal/vertical become local, thus enabling him to kinda "fly".

How to keep my player to just stop when colliding, rather than bouncing?

Comment
Add comment · Show 3
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 Benproductions1 · Apr 10, 2013 at 04:36 AM 1
Share

fix the rotation?

avatar image mechanicarts · Apr 10, 2013 at 05:12 AM 0
Share

$$anonymous$$y character does not have any rotation.

I believe it's a physics/dynamics issue.

EDIT: If you meant Freeze, this is not the way I must go. I have to find a way for my character to not react to collisions, other than prevent movement.

avatar image Benproductions1 · Apr 10, 2013 at 05:39 AM 0
Share

Freeze (A$$anonymous$$A fix A$$anonymous$$A fixate) also does that

1 Reply

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

Answer by Soumya · Apr 10, 2013 at 05:26 AM

Goto your player's rigidbody component and under CONSTRAINTS and check everything beside "Freeze rotation". That is the only way :)

This still means that you can rotate your player via scripts but the Unity physics system won't rotate the player.

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 mechanicarts · Apr 10, 2013 at 05:44 AM 0
Share

Ah I wish it wasn't the only way. I thought I had weird settings on my colliders, just couldn't find anything. Thanks though.

avatar image Soumya · Apr 10, 2013 at 03:46 PM 0
Share

And what exactly are you trying to do?

avatar image mechanicarts · Apr 10, 2013 at 09:09 PM 0
Share

When my character collides with anything, just stop moving to its direction.

avatar image Soumya · Apr 11, 2013 at 10:09 AM 0
Share

Then this should work.

avatar image shoc4555 · Jun 24, 2020 at 03:28 PM 0
Share

@Soumya you saved my another day:)

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

13 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

Related Questions

Collider going through walls with box collider.. 1 Answer

Rigidbody colliders 1 Answer

My Character controller is being push a little bit when i'm about the get the coins. How can i possibly detect collision and destroy the coins without actually getting affected by the colliding physics? 1 Answer

Objects with colliders going through walls and each other. 3 Answers

GameObject ignores collision while swinging from hinge joint 2D 4 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