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
1
Question by Alex_May · Feb 26, 2016 at 08:30 PM · animatorphysics2dkinematicmomentumbox2d

2D physics, animation-controlled kinematic colliders not affecting momentum

I have an object that is controlled by an animation (it is a simple box collider and the animation kicks it upwards quickly before returning slowly to its original position, and it does this on a loop), in an attempt to create a kind of kick tile that catapults objects that land on it upwards.

The problem is that the objects on the top of the tile do not achieve any kind of upward velocity. They get pushed out of the way, that is they physically move upwards, but they don't start moving upwards; their velocity is unaffected and no momentum is transferred.

I have made sure that the platform's Animator is set to Animate Physics, and that the Rigidbody 2D is set to Is Kinematic. Both the bounce pad and the object on top have a physics material, with a non-zero bounce value for what that's worth (I tried with 0 bounce and 1 bounce and same deal). I have experimented with different masses as well. Same deal. I know it's not that anyway because if I set the object's gravity to 0, the pad just pushes it up, and there it stays, instead of shooting off upwards forever.

I've tried all combinations of settings for interpolation and collision detection on both interacting objects. Nothing enables the platform to transfer momentum to the object on top.

I have also tried attaching a dynamic (non-kinematic) 2d box as a child of the platform. It doesn't work, and has the additional problem of not matching the animation anymore.

For what I want to do, I really don't want to add hacks like detecting collisions and then adding some force to the object from a script.

Any ideas / explanations?

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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by MelvMay · Mar 23, 2016 at 06:30 PM

At a guess; If you're animating the position of an object then it is just being re-positioned and doesn't have any velocity (energy) so it won't pass that onto other colliders it overlaps (yes, it'll overlap, not contact edges as you're repositioning it over other colliders and the physics system will just solve the overlap.

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 grantdddd · May 24, 2020 at 09:09 PM 0
Share

Is there a proper way to have animated objects "hit" dynamic objects with some velocity? I'm running into this same problem, trying to get an human player-character (animated object with a hierarchy of body parts) to hit a ball (simple, dynamic object) in a volleyball game.

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

36 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

Related Questions

Interpolation issue, some items not being interpolated correctly. 0 Answers

[Video] 2D hinge joints not working. 1 Answer

[2D] Tetris game with rigidbodies snapping bug 0 Answers

2D Animation does not start 1 Answer

elastic collision simulation loses 400 kgm/s momentum in a few hours 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