Broken functions of the api

Post Reply
JALdMIC
Member
Posts: 116
Joined: Tue Oct 08, 2019 18:49
In-game: None

Broken functions of the api

by JALdMIC » Post

Apparently in the Minetest api theres functions who don't function correctly like:get_animation and get_bone_position.
get_bone_position:in the lua_api text says who this function obtain the position and rotation of a bone but when i try i just obtain a table like this {0,0,0} and this is only the position,the rotation is missing.
get_animation:supposed to obtain the current animation data but just give me a table whit nil values.

User avatar
LMD
Member
Posts: 1386
Joined: Sat Apr 08, 2017 08:16
GitHub: appgurueu
IRC: appguru[eu]
In-game: LMD
Location: Germany
Contact:

Re: Broken functions of the api

by LMD » Post

1. No, get_bone_position returns a rotation as well. If you don't get a rotation, there is a bug in your code.
2. There is a "bug" where the default bone position is not returned, so you get (0, 0, 0) as default: https://github.com/minetest/minetest/issues/9445
My stuff: Projects - Mods - Website

JALdMIC
Member
Posts: 116
Joined: Tue Oct 08, 2019 18:49
In-game: None

Re: Broken functions of the api

by JALdMIC » Post

LMD wrote:
Tue Feb 07, 2023 19:38
1. No, get_bone_position returns a rotation as well. If you don't get a rotation, there is a bug in your code.
2. There is a "bug" where the default bone position is not returned, so you get (0, 0, 0) as default: https://github.com/minetest/minetest/issues/9445
I don't speak English
You can put me some example where the functions works,because the only method with get_bone_position works is using set_bone_position before then and just give me the position,also i try to use part of the character_anim code but cause who the bones rotate in a weird manner,i use a personalized model from Makehuman.

Post Reply

Who is online

Users browsing this forum: milkshake and 4 guests