Model animation api?

fyregryph
Member
 
Posts: 16
Joined: Wed Oct 15, 2014 18:25
In-game: fyregryph_

Model animation api?

by fyregryph » Mon Oct 27, 2014 04:13

Is there any documentation about animating a model for minetest? Or is the only way to get a grasp of how to do it looking at mods and figuring out how those work? Really what I would like to know in how to embed the animations in a b3d/x file in a way MT can understand and then how to activate those animation from inside the mod. I've looked at a blend file for the simple mobs mod and it looks like there is one long animation broken divided into sections for different movements, e.g., walk, eat, etc. I've also started to look through mod source from mods that use animation, but it would be nice to have documentation or at least a better idea what to look for.

I'm trying to write a mod that changed the player model, which would need all the basic animations like walking and hacking at things. I bring this up because I know people will suggest using a mob framework. Though I may be able to take bit and pieces from one for the animation handling code.
 

fyregryph
Member
 
Posts: 16
Joined: Wed Oct 15, 2014 18:25
In-game: fyregryph_

Re: Model animation api?

by fyregryph » Mon Oct 27, 2014 05:25

Looks like self.object:set_animation is the key here.
 


Return to Modding Discussion

Who is online

Users browsing this forum: No registered users and 9 guests

cron