DragonBones / DragonBonesCPP

DragonBones C++ Runtime
MIT License
395 stars 228 forks source link

Gathering bone data (Ex: foot) #196

Closed barisdoga2 closed 5 years ago

barisdoga2 commented 5 years ago

I am trying to get foot bone data for physics things frame by frame, but couldnt find any uselfull function for it.

Thanks in advance.

barisdoga2 commented 5 years ago

dragonBones::SFMLArmatureDisplay armatureDisplay("mecha_1004d"); auto bone = armatureDisplay.getArmature()->getBone("foot_r"); auto trans = bone->getBoneData()->transform; auto pose = bone->animationPose;

I found above functions to get bone data but it doesnt change by frame.