I want to make better animation for mobs, for example turning the head independently from the body and make rotation smoother.
Currently mobs are static. They can move arms, legs or heads only on predefined animations by Blender. I want to be able for example to rotate a head from the script.
And I want to make animations smoother. Currently a mob did not rotate, he is just set to the new direction.
Is this possible with the current engine? And how does it work? If not, what has to be changed?
I want to animate mobs more dynamically
Re: I want to animate mobs more dynamically
I have two ideas. I can use the same methods like the playeranim mod, but I think this will cause lags.
The other idea is to split body and head. The body can be animated with keyframes like now. The head can be attached to the body with set_attach()
The other idea is to split body and head. The body can be animated with keyframes like now. The head can be attached to the body with set_attach()
- azekill_DIABLO
- Member
- Posts: 7507
- Joined: Wed Oct 29, 2014 20:05
- GitHub: azekillDIABLO
- In-game: azekill_DIABLO
- Location: OMICRON
- Contact:
Re: I want to animate mobs more dynamically
set_attach() does lag and bugs... will the head will be the player and the body follows??
the head might sometimes float in air...
but anyways, great idea!
the head might sometimes float in air...
but anyways, great idea!
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!
DMs are always open if you want to get in touch!
Re: I want to animate mobs more dynamically
No, body would be the player/mob. Body should play normal keyframe animations. Head should follow and yaw will set by script
- azekill_DIABLO
- Member
- Posts: 7507
- Joined: Wed Oct 29, 2014 20:05
- GitHub: azekillDIABLO
- In-game: azekill_DIABLO
- Location: OMICRON
- Contact:
Re: I want to animate mobs more dynamically
but that mean the head would turn instead of the body no?may be hard to do... but it's interesting ! i'm thinking to do a WoT subgame with tanks with turets turning...
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!
DMs are always open if you want to get in touch!
Re: I want to animate mobs more dynamically
No, the body is moved/rotated by the "AI". The positition of the head follows because he is attached. I don't know if the rotation is also applied automatically to the attached object. If not this will be done by the script.azekill_DIABLO wrote:but that mean the head would turn instead of the body no?may be hard to do... but it's interesting ! i'm thinking to do a WoT subgame with tanks with turets turning...
To let the head look left/right and up/down I will add a vector to the current direction
- Calinou
- Moderator
- Posts: 3169
- Joined: Mon Aug 01, 2011 14:26
- GitHub: Calinou
- IRC: Calinou
- In-game: Calinou
- Location: Troyes, France
- Contact:
Re: I want to animate mobs more dynamically
Smooth rotation (interpolating entity/player rotations) needs to be done in the engine. It's been proposed for a while now.
Re: I want to animate mobs more dynamically
I know, rotation in a script would be a bad hack. But minetest really needs better mobs, and smooth animations and a independent head are one step
Who is online
Users browsing this forum: No registered users and 19 guests