3D FPS need help with boneattachment

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By linuxfree
:warning: Old Version Published before Godot 3 was released.

Hi.

I have a Model with animations and camera exported from Blender to my Godot Engine and Model control camera view by instance node(parent)

My game have a real Model body(not arms and gun only) cause will be to Multiplayer Tournament and players will see other players.

My questio is: How can do mouse control ‘UP_arm_right bone’ to rotation “yaw” and “pitch”?

Boneattachemnt can solve that? How i can made?

thanks

:bust_in_silhouette: Reply From: Zylann

I think BoneAttachment is a helper to allows you to plug Spatial nodes on a bone (such as weapons, hats…), not controlling the bone itself.

I never did that in Godot yet, but looking at the Skeleton doc I suppose this could be what you are looking for:
skeleton_node.set_bone_custom_pose(skeleton_node.find_bone("UP_arm_right"), new_transform), maybe?
I’m just not sure how it will work with animations, because anims already set bones position every frame.

Hi there

Do you understand friend? I have a complete Model cause will work in multiplayer and all players will have same model.Then when i rotate mouse pitch and yaw I need UP right arm with gun of player rotate with mouse capture and movement

if have any example or idea or link please post here

linuxfree | 2016-09-16 17:08