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 whitequill · Nov 27, 2013 at 05:30 PM · rigidbodyplayerkinematicwall

Rigid bodies pushable

I have been having this problem for a while and I have been getting answers saying, "make the rigid body Kinematic". Well it doesn't work!

I have a layer which I have collidable invsable objects on (collidable) and a layer I have the player and interactable objects on, like walls and boxes and things (Level).

All of my walls or objects are instancated. nothing exists till an invisable collider on the player hits another invsabile collier on the collidable layer in the scene, and instancates an object into the Level layer.

So my problems is when I instancate a new object into the scene I can only use Gravity. If you make the object be Kinematic at all the object becomes phantom, for lack of a better term. The problem here is you can push the objects and they are not good for use as walls Kinematic or not!

This is very bothersome to me and I cannot find away around it.

Comment
Add comment
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

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by karljj1 · Nov 27, 2013 at 05:48 PM

So you cant have kinematic objects as you need gravity to clamp them to the ground?

But you don't want people to be able to push them? What about adding a physic material to your collider that has very high friction?

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

Comment
Add comment · Show 15 · 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 whitequill · Nov 27, 2013 at 07:04 PM 0
Share

I like the idea. How high of fricion do I need to make it so a first person controler can't push an object?

avatar image karljj1 · Nov 27, 2013 at 07:05 PM 0
Share

1 is the highest. Also set the material Friction Combine to maximum.

avatar image whitequill · Nov 27, 2013 at 09:23 PM 0
Share

here is an odd example of what is going on in the scene. my Character contorler is happy to move around on a Box Collider with no Ridid Body, but nothing else will...

Everything else needs to be a Ridibody and have Gravity to act like there is a floor or other objects that aren't supposed to be moved? No! This is an FPS style game. Ever been able to push a wall in an FPS? I hope not!

avatar image karljj1 · Nov 27, 2013 at 09:26 PM 0
Share

$$anonymous$$y understanding is that you cant make them kinematic as you want them to fall to the floor. How about placing them on the floor using a raycast down? Then you can make them kinmatic.

avatar image whitequill · Nov 29, 2013 at 12:34 AM 0
Share

I've been trying the physic material idea, but it doesn't work. I can't make a material that inhbits movments completely 100%.

@karljj1: falling isn't really the important part, it is the ablity to inhibit movment of the player so they, the player, do not stupidly fall off the edge of the scene into the black void of nothing below the scene.

Show more comments
avatar image
0

Answer by whitequill · Aug 14, 2014 at 02:14 PM

Go to the Edit menu > Project Setting > Physics. This will give the ability to tell what can be interacted with (can or can't be pushed) and what can't across layers.

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

17 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

Related Questions

ANSWER DETERMINED (CAN'T DELETE) 1 Answer

Rigid body child Player movement 0 Answers

How to make a ragdoll not rotate but still be non kinematic? 0 Answers

isKinematic object doesnt collide with wall 3 Answers

Why attach a kinematic rigidbody to a collider that moves a lot? 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