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.
Broken functions of the api
- LMD
- Member
- Posts: 1396
- Joined: Sat Apr 08, 2017 08:16
- GitHub: appgurueu
- IRC: appguru[eu]
- In-game: LMD
- Location: Germany
- Contact:
Re: Broken functions of the api
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
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
Re: Broken functions of the api
I don't speak EnglishLMD wrote: ↑Tue Feb 07, 2023 19:381. 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
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.
Who is online
Users browsing this forum: No registered users and 3 guests