Skip to content

Physical Animations for Unity through the combination of local motor-based and global keyframed-based pose matching

License

Notifications You must be signed in to change notification settings

lenoctambule/PhysAnim-Unity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PhysAnim for Unity

Ragdoll gif

PhysAnim is a Unity tool that enables physical animations through motor-based and keyframe-based ragdoll pose matching similar to those found in Star Wars: Fallen Order or Uncharted 4.

Goal

Real-Time CGI are now great enough to make the environment, the characters feel almost life-like and allowing blending between physics and animations and overall putting an emphasis on interactions is the last missing piece to create truly immersive experiences. In VR/AR or high fidelity experiences, interactions are crucial as the lack of interactivity (or bugs) can easily break the player's immersion. The goal of PhysAnim is to bridge that last gap.

Roadmap

  • Local motor-based pose-matching
  • Global keyframe-based pose-matching
  • Physics to regular animation transitioning

Quickstart Guide

⚠️ First, you have to make sure that your animator's culling mode is set to "Always animate" and the update mode to animate physics.

  1. Slide the PoseMatch.cs script in any GameObject into the inspector.
  2. Assign into reference the root of the ragdoll you want to animate.
  3. Hit "Auto-detect and add character joints" button to add all the joints to the Motor-driven joints list or add and tweak the strengths manually.
  4. You can also add Keyframe-driven limbs and tweak their stiffness.
  5. You have 3 modes :
    • Ragdolling which will match poses only using the motor-driven joints
    • Partially keyframed which will mix both motor-driven and keyframed driven.
    • Fully keyframed which will match the animation one to one but it is better to just disable the script.

Acknowledgments

About

Physical Animations for Unity through the combination of local motor-based and global keyframed-based pose matching

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages