Directional Animations in 3D #280
Labels
Enhancement
New feature or change request
Feedback Wanted
Community feedback is desired
Solved
A solution is available here (but may not yet be included in the latest release)
Use Case
Some games use a combination of 2D Sprites in a 3D world, for example:
Animancer's Directional Animation Sets can do that easily, but Animancer doesn't yet have an example scene to demonstrate the capability.
Solution
Here's a package with a simple example scene that will work with Animancer Lite or Pro: Animancer - Directional Animations in 3D.zip
It has two scripts:
DirectionalAnimations3D
is the main logic which you would use in a game. Instead of telling Animancer to play a specific animation, you can set its properties and it will use them to decide what to play:Animations
is theDirectionalAnimationSet
you want it to currently use.Forward
is the world space direction the character is facing.DirectionalAnimations3DController
is an example script which uses the rotation of an object in the scene to control theDirectionalAnimations3D.Forward
direction.The system chooses the appropriate animation based on the
Forward
direction relative to the camera so rotating the camera changes the animation:And rotating the
Forward
direction also changes the animation:Feedback
As always, feedback is welcome. This will likely be added as an example scene in the next version of Animancer.
The text was updated successfully, but these errors were encountered: