Quantcast
Channel: Community | MonoGame - Latest topics
Viewing all articles
Browse latest Browse all 6821

Mini lib (like 4 files..) for sprites with bone-like transformations

$
0
0

@GeonBit wrote:

After asking this question: http://community.monogame.net/t/2d-transformations-hierarchy-like-with-bones-with-matrix/8679 I ended up implementing my own solution, and I though it may be useful to some of you guys. So I made the following repo:

https://github.com/RonenNess/MonoGame-Sprites

In short, it implements a Sprite class with basic transformations (position, scale, color, zindex, rotation, etc), which you can put inside another Sprite (or Container) and the transformations will inherit in a way suitable for making 2D bones-based animation. In other words it implements Sprites and Containers that support transformations hierarchy.

For example, if you place an item at the palm of the player and later you rotate or move the entire arm, the item will "stick" to its relative position and always appear at the right place.

Enjoy :slight_smile:

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 6821

Trending Articles