More entity attachment inconsistencies

User avatar
stu
Member
 
Posts: 737
Joined: Sat Feb 02, 2013 02:51
GitHub: stujones11

More entity attachment inconsistencies

by stu » Wed May 28, 2014 20:28

When an entity is attached to the bone a player it automatically inherits that bone's rotation (as you would expect)
however, this is not the case if I attach a player to the bone of an entity, rotate the entity bone
and the player stays put. This is true in both second and third person views.

I am not sure if this is a bug or a 'feature' but if I call set_bone_position() on an entity
it completely disables any animation, even if I call set_animation again afterwards, nothing happens.

I was hoping to make an airplane mod using bone position to 'fake' pitch and roll but this idea
has since been scuppered by the above mentioned problems. I am beginning to wonder if minetest's
entity system will ever be in a consistent, usable state D:
 

User avatar
Pavel_S
Member
 
Posts: 131
Joined: Sat Apr 06, 2013 11:43

Re: More entity attachment inconsistencies

by Pavel_S » Wed May 28, 2014 20:40

setboneposition affects to all copies of mesh.
I also tryed make airplane mod and added pitch using animation. Each 3 frame pitch change, so i simply found start and end frame.
 

User avatar
stu
Member
 
Posts: 737
Joined: Sat Feb 02, 2013 02:51
GitHub: stujones11

Re: More entity attachment inconsistencies

by stu » Wed May 28, 2014 20:50

Pavel_S wrote:setboneposition affects to all copies of mesh.

Sorry, I am not quite sure what you mean by this.
Pavel_S wrote:I also tryed make airplane mod and added pitch using animation. Each 3 frame pitch change, so i simply found start and end frame.

Interesting approach, would be tricky to also implement roll this way but pitch alone would still be better than nothing.
 

User avatar
Pavel_S
Member
 
Posts: 131
Joined: Sat Apr 06, 2013 11:43

Re: More entity attachment inconsistencies

by Pavel_S » Thu May 29, 2014 04:46

stu wrote:
Pavel_S wrote:setboneposition affects to all copies of mesh.

Sorry, I am not quite sure what you mean by this.

https://github.com/minetest/minetest/issues/1091

here is setyaw() function, so pitch is not alone.
Another solution for roll-pitch-yaw is like I made in Helicopter mod, I use set_attach() to rotate heli model as needed.
 

User avatar
stu
Member
 
Posts: 737
Joined: Sat Feb 02, 2013 02:51
GitHub: stujones11

Re: More entity attachment inconsistencies

by stu » Thu May 29, 2014 18:17

Pavel_S wrote:
stu wrote:
Pavel_S wrote:setboneposition affects to all copies of mesh.

Sorry, I am not quite sure what you mean by this.

https://github.com/minetest/minetest/issues/1091

here is setyaw() function, so pitch is not alone.
Another solution for roll-pitch-yaw is like I made in Helicopter mod, I use set_attach() to rotate heli model as needed.


Ah thanks, I hadn't seen that one, that's even worse than I thought. Never mind, I think I will just have to forget this idea for now.
 


Return to Minetest Problems

Who is online

Users browsing this forum: No registered users and 3 guests

cron