Giter VIP home page Giter VIP logo

animation-jobs-samples's Introduction

Animation C# Jobs Samples

The Animation C# Jobs Samples repository includes examples of Playable graphs using Animation C# Jobs. For more information, see AnimationScriptPlayable.

Compatible with Unity 2019.3 or later.

The samples

SimpleMixer

This sample shows how to mix two clips together on a generic character.

WeightedMaskMixer

This sample is based on the SimpleMixer, but you can change the weights of some joints (left arm, right arm, and head), so that the second clip only applies based on the joint weights.

LookAt

This sample adds a look-at behaviour on a Chomper, a quadruped creature from the 3D Game Kit.

TwoBoneIK

This sample adds a two-bone IK on a generic human character.

FullBodyIK

This sample create a fullbody IK on a humanoid character.

Installation

Simply git clone the repo somewhere and open the newly created directory with Unity.

Optionally, the GraphVisualizer can be used to have a visual representation of the graphs in the samples.

Project contents

The following table indicates the structure of the Assets/animation-jobs-samples directory:

Location Description
Resources Contains the resources for the samples (e.g. meshes, textures, animations, ...).
Runtime/AnimationJobs Contains the animation C# jobs.
Samples/Scripts Contains the sample C# scripts.
Scenes Contains the sample scenes.

animation-jobs-samples's People

Contributors

davidg-unity avatar mecanimdev avatar romainf-unity avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

animation-jobs-samples's Issues

Reading non-solved Animation Pose

This may be an issue, or otherwise I simply don't understand how to do this.

For custom IK stuff I want to raycast from the animated position, but as long as the weight is > 0 I cannot get anything but the position that is already influenced by IK solving.

I asked the question on the forums : https://forum.unity.com/threads/c-animation-jobs-playables-how-to-obtain-non-solved-ik-positions.730673/

But 0 answers.

I tried:

m_Animator.GetIKPosition(AvatarIKGoal.LeftFoot);
m_Animator.GetBoneTransform(HumanBodyBones.LeftFoot).position;
humanStream.GetGoalPosition(AvatarIKGoal.LeftFoot);
humanStream.GetGoalPositionFromPose(AvatarIKGoal.LeftFoot);
job.leftLeg.end.GetPosition(stream);

But none gave me the correct position, I even tried different functions (Update, OnAnimatorIK, LateUpdate...)

Is this feature missing or am I doing it wrong?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.