APercy / automobiles_pck

automobiles mod for minetest
MIT License
14 stars 8 forks source link

Models lack bones; overrides player model #20

Open appgurueu opened 9 months ago

appgurueu commented 9 months ago

Your player models (e.g. for the Vespa) seem to lack Head, Body, and Arm_Right bones, not allowing character_anim to animate them; before my last commit that addresses this, character_anim would even crash to make users aware of this (issue) (that's on me).

Is there a reason why the models lack these bones? Would you mind adding them?

(Also, have you considered just setting bone positions? This might also be better for game compatibility - NodeCore or Mineclone player models IIRC have the same bones, but a different appearance).

APercy commented 9 months ago

Well... I didn't remove the bones. I first reduce the character's scale to zero and then instantiate an entity using the character's default mesh, as I had a bug after rotating and moving the bones directly in the player. When leaving the vehicle, the character lost movement. So by creating a clone of it I could do what I wanted and then delete it at the end