?? movejointto.cc
字號(hào):
#include "movejointto.ih"MoveJointTo::MoveJointTo(string const &id, string const &playerClass) : Behavior("MoveJointTo", id, playerClass), d_gain(0.1){ d_gain = getParam("/gain", d_gain);/* XMLNodeSet params = getParams("/gain"); if(params && !params.empty()) { XMLNode gainNode = params.front(); d_gain = atof(gainNode.getContent().c_str()); }*/ XMLNodeSet params = getParams("/joint"); if(!params || params.empty()) throw new BatsException("MoveJointTo behavior requires a joint parameter"); else { XMLNode jointNode = params.front(); d_joint = (Types::Joint)atoi(jointNode.getContent().c_str()); } d_tree = new AST::Node(sequenceType); d_tree->addChild(new AST::Node(andType)); d_tree->getChild(0)->addChild(new AST::Node(orType));}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -