From fb0c43186422ad985e70f73bc70eeb07cc194909 Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Thu, 25 Oct 2012 23:29:07 +0300 Subject: Allow the LUA API to set animations to meshes as well as the animation speed. Also update animations only when needed. Support for animation blending, though for some reason it doesn't work. Don't enable animation transitions by default for many reaosons Object property to store individual bone positions. LUA can specify a bone name followed by a bone position. No functionality yet. Bone rotation to be added in the following commit Same system for bone rotation, plus a few other things I missed --- doc/lua_api.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'doc') diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 84c86061f..2b2b6c6f1 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -1230,6 +1230,11 @@ Object Properties visual = "cube"/"sprite"/"upright_sprite"/"mesh", visual_size = {x=1, y=1}, mesh = "model", + animation_frames = {1, 1}, + animation_speed = 15, + animation_blend = 0, + animation_bone_position = {"", {x=0, y=0, z=0}}, -- bone name followed by position vector + animation_bone_rotation = {"", {x=0, y=0, z=0}}, -- bone name followed by rotation vector textures = {}, -- number of required textures depends on visual spritediv = {x=1, y=1}, initial_sprite_basepos = {x=0, y=0}, -- cgit v1.2.3