/
Atomsオブジェクトの解析

Atomsオブジェクトの解析

import Atoms
import AtomsCore
from Atoms import GLOBAL_NAMES

#agent type
agentType = Atoms.AgentTypes.instance().agentType("atomsRobot") 
skeleton = agentType.skeleton() 
print skeleton.numJoints()
metadata = agentType.metadata()
print metadata.keys()

#agent joint matrix
agent = Atoms.AgentsPool.instance().agent(0) # 0 is the global agent id
pose = agent.pose() 
poser = AtomsCore.Poser(agent.agentType().skeleton()) 
joint10Matrix = poser.getWorldMatrix(pose,10) 
print joint10Matrix 

# animation clip 
clips = Atoms.AnimationClips.instance() 
clip = clips.animationClip("atomsRobotWalk") 
jointIndex = 0 
jointPose = clip[jointIndex] 
frame = 10 
translation = jointPose.getTranslation(frame) 
pelvisVelocity = jointPose.getArrayMetadataAtFrame(GLOBAL_NAMES.JOINT.PELVIS_VELOCITY, frame).get()
print pelvisVelocity 

Related content

Agent Aim
More like this
Agent Typeの作成
Agent Typeの作成
More like this
C ++ Standalone Simulationの作成
C ++ Standalone Simulationの作成
More like this
Agent Groupを作成する
Agent Groupを作成する
More like this
アニメーションのエクスポート
アニメーションのエクスポート
More like this
Animation Clipの作成
Animation Clipの作成
More like this

Copyright © 2017, Toolchefs LTD.