2011-08-05 3 views
1

나는 Kinect에서 얻은 사용자 데이터로 모델을 실시간으로 매핑하려고합니다. bge.types.BL_ArmatureObject(). 채널 을 사용하여 개별 뼈에 액세스 할 수 있습니다. 뼈 목록이 있습니다. 나는 위치 뼈를 바꿀 수 없다. rotation_euler를 사용하여 회전을 시도했지만 효과가 없습니다. 어떻게하는지 말해줘. 이 트릭해야 믹서기> = 2.5파이썬을 사용하여 블렌더 게임 엔진에서 뼈대 위치를 바꿈

답변

3

아마 조금 늦었지만 : 나는 또한 광범위한 튜토리얼에서이 적어

# Get the whole bge scene 
scene = bge.logic.getCurrentScene() 
# Helper vars for convenience 
source = scene.objects 

# Get the whole Armature 
main_arm = source.get('NAME OF YOUR ARMATURE') 

main_arm.channels['NAME OF THE BONE YOU WANT TO ROTATE'].joint_rotation[ x, y ,z] # x,y,z = FLOAT VALUE 

main_arm.update() 

을, 여기에서 시작 : http://www.warp1337.com/content/blender-robotics-part-1-introduction-and-modelling