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 kevin_rmucan · Jan 10, 2020 at 09:43 AM · physicsrigidbodycolliderfriction

Forklift pallet physics

Hello,

What I have:

  • Forklift with a rigidbody and appropriate colliders

  • Forks that move through an animator with simulated physics on. The forks themselves have box colliders

  • Pallet with rigidbody and colliders

  • Physics materials

  • List item

Wood: dynamic: 0.8, static: 0.8, bouncy: 0 Metal: dynamic: 0.6, static: 0.6, bouncy: 0 - The forklift movement - List item

What the problem is: I can pick up the pallet just fine, but when I tilt my forks back. The pallet doesn't follow along as shown in the gif below. I have been trying to find an answer to this, but no luck so far. How do I go about fixing this issue?

EDIT: For those who would like to mess around in a project, I created a unity package which contains a dummy version of everything. Import the package, open the test scene and run it. Controls: arrow keys to move, L to move forks up, SHIFT + L to move forks down, M to tilt the forks, SHIFT + M to tilt in opposite direction.

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 bhavinbhai2707 · Jan 10, 2020 at 10:32 AM 0
Share

maybe make it a child of the fork?

3 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by Mr_Teels · Jan 10, 2020 at 04:56 PM

Try adding a "Physics Material" to the Palett and the BoxCollider. The standart PhysicsMaterial hat little to no friction...

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 kevin_rmucan · Jan 13, 2020 at 08:17 AM 0
Share

Both have a physics material with frictions set to 1 (or higher), still sliding.

avatar image
0

Answer by lgarczyn · Jan 12, 2020 at 02:07 PM

An animator with animate physics is only supposed to be used on kinematic objects. I'm surprised how well this works, but this might be the cause

I would recommend using a Joint to represent the forklift tilt and another for the elevator, and either script or animate the joint values.

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 kevin_rmucan · Jan 13, 2020 at 08:31 AM 0
Share

The forks are kinematic but the pallet ain't.

avatar image lgarczyn kevin_rmucan · Jan 13, 2020 at 08:52 PM 0
Share

Damn, it should work then. Are you sure the forklift hotbox is not pushing against the pallet?

avatar image kevin_rmucan lgarczyn · Jan 14, 2020 at 12:14 PM 0
Share

I am sure yea. I uploaded a small package with the forklift recreated incase you want to experience it for yourself.

Show more comments
avatar image
0

Answer by Bunny83 · Jan 12, 2020 at 03:46 PM

Does your sliding "fork" gameobject has it's own rigidbody? If not you're violating basic rigidbody principles. If you lift and tilt that fork inside a single rigidbody object, it's no longer a rigid object.


Also make sure the physics material of your fork and your pallet colliders have a high friction value. Keep in mind that the frictionCombine value controls what actual friction value will be used. See PhysicMaterialCombine for more information.

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 kevin_rmucan · Jan 13, 2020 at 08:29 AM 0
Share

If I add a rigidbody to the parent object of both forks or a separate rigidbody to each fork, it then acts weird too. But I ill try make a simplified forklift first, the model i received is kinda big and bad. I will get back to you when I have done this.

alt text (https://i.imgur.com/edETojo.gifv)

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

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

Rigidbody cube randomly stops moving? 1 Answer

My object falls through terrain. 8 Answers

Character Controller Pushes Car With Wheel Colliders? 0 Answers

Can a character collider be affected by a rigidbody collider? 0 Answers

Car steerAngle limitation based in wheel collider 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