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 claytoncurmi · Mar 05, 2014 at 02:55 PM · physicsmecanimblend

Blend Mecanim animation with forces induced via the Physics engine

Hi all,

I've set up a character with Mecanim. The animations blend correctly and everything is working properly. Now I would like to blend forces with the animation that is currently being played. So for example, imagine a character in the idle state and a ball hits him squarely in the face! I would like the character to be pushed back (but doesn't fall back) and resume the idle animation. So far, I've only managed to transition from a Mecanim controlled character to a ragdoll controlled character (character doesn't resume animation afterwards, it just lays down on the floor). So my question is, is it possible to blend between a playing animation and forces induced via the physics engine? If it is possible, can someone point me in the right direction. I've searched Google but to no avail (I'm sure there is something out there that fits my requirements )

Thanks!

Regards, Clayton

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 claytoncurmi · Mar 06, 2014 at 10:44 AM 0
Share

Can anyone shed some light on this please?

3 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by benni05 · Mar 06, 2014 at 11:35 AM

It is possible in the way that you switch i.e. the central Transform/Bone (Spine, Body) to non-kinematic rigidbody so that it is affected by the physics engine and moves the whole character. All other connected Transform/Bones would remain kinematic rigidbodies (or no rigidbodies at all if never affected by physics) and be controlled by an animation. The animation should only change position/rotation of those parts and not change the physics controlled body part.

edit: the other parts should be kinematic rigidbodies

Comment
Add comment · Show 2 · 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 claytoncurmi · Mar 06, 2014 at 12:00 PM 0
Share

What I'm looking for is something like this - http://www.youtube.com/watch?v=Zc756JF_oW4 but in Unity3D not UD$$anonymous$$ :)

avatar image benni05 · Mar 06, 2014 at 12:07 PM 0
Share

I'm not aware of a way to blend physics and animation in Unity in a configurable way like it is shown for UD$$anonymous$$, but maybe someone knows better.

avatar image
0

Answer by chaneya · May 04, 2014 at 03:48 PM

This feature was advertised as a new product called "Mecanim Ragdoll Animation Blender" in the Unity Asset Store on a youtube video by Rob Cote. Here is the link.
http://youtu.be/ecPujs5PwZQ

So far I have not been able to find it on the Asset Store.

Allan

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 Kavorka · May 04, 2014 at 04:55 PM 0
Share

This may also be of some interest to you. Video 1 Video 2 Web player

avatar image
0

Answer by reckless_glitch · Nov 25, 2014 at 05:53 AM

So did anyone get any further on that?

I've got an Idea that might work:

Use 2 rigs: One with the animator and no mesh, the other one as a physical modell with mesh, colliders, rigids, char joints etc. Then we attach the physical rig to the animated one either by spring joints or somehow by script. Anyhow I'd even do the string attaching by script. Might be a bit string-puppet-ish, but could work. After that we'd have to do some checking on when will the "creature" fall over and swap the animation. I'm just a bit anxious about all those joints freaking out at the end or getting tangled up.

What do think?

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

23 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

Related Questions

Is there a way to use physics to keep a character from clipping through itself during an animation? 0 Answers

Mecanim blend tree transition speed 0 Answers

Keeping characters within Fighting area 1 Answer

Unity Gllitching Everything? 1 Answer

Mecanim blend moves character? 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