• 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 NathoSteveo · Jan 14, 2021 at 08:45 AM · rigidbodycharacter controllerheavy

How to stop Player from pushing heavy Rigidbody Object

The tree has a mass of 500 (very heavy) yet the player can simply move it around? Only when the tree's Rigidbody is awake, when the tree is on the ground player cannot move it.


video of problem


Edit: I think I'm just going to make a Rigidbody controller..

Comment
Add comment · Show 1
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 SmallLion · Jan 14, 2021 at 10:08 AM 2
Share

What a about freeze position in tree?

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by NathoSteveo · Jan 14, 2021 at 10:20 AM

Freezing any or all positions does not work :^( it either sends it in the air or doesn't let the tree fall at all.. I've also tried IsKinematic which gives undesired results. my Player movement uses a CharacterController no Rigidbody btw.

Here's the setup @Llama_w_2Ls the tree

alt text

the tree code that pushes it over

alt text


rigidbody.jpg (115.5 kB)
treepushcode.jpg (30.8 kB)
Comment
Add comment · Show 7 · 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 Llama_w_2Ls · Jan 14, 2021 at 10:24 AM 0
Share

I don't know why this might be happening. $$anonymous$$aybe a screenshot of your current setup in the editor or more description might help me to understand the cause of this issue?

avatar image Llama_w_2Ls · Jan 14, 2021 at 10:45 AM 0
Share

Ah.. I saw your video just now. Didn't see the link before. If you want the player to not be able to easily move around the rigidbody when it is grounded, you should set it to IsKinematic once it's hit the floor. $$anonymous$$aybe this helps?

avatar image NathoSteveo Llama_w_2Ls · Jan 14, 2021 at 10:55 AM 0
Share

But you are able to move the tree when it starts to fall down, when the rigidbody IsSleeping you cannot, only when it's awake.

Setting IsKinematic will just cause it to freeze mid air :/

avatar image Llama_w_2Ls NathoSteveo · Jan 14, 2021 at 11:10 AM 0
Share

Whilst it's falling, the rigidbody is awake. Once it's hit the floor, didn't you want the rigidbody to not be movable anymore?

Show more comments
avatar image SmallLion · Jan 14, 2021 at 12:26 PM 0
Share

what is the mass of player?Does it has rigidbody?. Hope yes.Did u see that? https://answers.unity.com/questions/281163/freeze-position-without-rigidbody.html

avatar image
0

Answer by Llama_w_2Ls · Jan 14, 2021 at 10:14 AM

Yes, as SmallLion mentioned, freezing or locking the position of the rigidbody, will not allow the object to move at all. This can be done in the constraints menu dropdown of the rigidbody component.


Another way is to set it to IsKinematic, so it can't be moved by other rigidbody objects. However, this might cause collision detection issues, especially in 2D. @NathoSteveo

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.

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

159 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 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 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 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 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 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 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 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 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 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

Ethereal Character Controller 2 Answers

Rigidbody vs. Character Controller 2 Answers

How to keep rigidbody from falling through terrain? 2 Answers

OnCollisionEnter not working between two rigidbodies 1 Answer

Ragdoll driven game 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