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 greatUnityGamer · Aug 20, 2013 at 01:35 PM · physicsinteractionpushing

How do you give Objects in your scene Weight and Player can push them?

Just lay a bunch of objects like boxes , rocks etc. The heaveir objects like cars, can't move but i want my character to be able to PUSH other objects.

Like if there's a heavy big box and the character(I"m doing an FPS) walks through it, the character should not be able to pass through, instead he will push it but the box will give out force and the speed of the character walking will slow down.

that's what i want to do. even if it wasn't an FPS sstyle game.

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 Sajidfarooq · Aug 22, 2013 at 05:26 PM 1
Share

You really need to start marking your questions as "answered".

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by Sajidfarooq · Aug 20, 2013 at 01:36 PM

Turn the objects you want to be pushed around into rigid bodies.

Component->Physics->Rigidbody

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 greatUnityGamer · Aug 20, 2013 at 01:39 PM 0
Share

Oh nice. Wel but that's it?

and how do i reduce the weight of the object somehow..so it's not super heavy?

and so do i have to make the player also be a rigidbody? So that i can have force and be able to push ?

avatar image Linus · Aug 20, 2013 at 01:41 PM 0
Share

Change the mass

http://docs.unity3d.com/Documentation/Components/class-Rigidbody.html

http://docs.unity3d.com/Documentation/ScriptReference/Rigidbody.html

The objects that will not move should not have a rigidbody, and should be marked as static in the transform component.

avatar image BuildIntoGames · Aug 22, 2013 at 05:46 PM 0
Share

to change the mass, simply go to your object > Rigidbody > $$anonymous$$ass

You can change the mass to whatever you would like. The higher the mass, the heavier. Also, make sure you have gravity on. You can turn it on and off through the rigidbody as well. That easy!

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

18 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

Related Questions

How do I fake momentum transfer for collisions with a non-physics character? 0 Answers

WebGL Build bugged Colliders 0 Answers

Reading all the Collsion-Data for specific physical interactions 3 Answers

Stopping all player interactions with OnCollisionEnter? 2 Answers

How do I make my object move by exactly one in unity? 3 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