/***************************************************************************\ * Class Specific * \***************************************************************************/ void PhysicsHinge2Joint::initHinge2Joint() { setAnchor(PhysicsHinge2JointBase::getAnchor()); setAxis1(PhysicsHinge2JointBase::getAxis1()); setAxis2(PhysicsHinge2JointBase::getAxis2()); setWorld(PhysicsHinge2JointBase::getWorld()); initJoint(); }
void ReferenceGenerator::initJoint(const std::string& name, double max_vel, double max_acc, double min_pos, double max_pos) { int idx = this->joint_index(name); if (idx < 0) { joint_name_to_index_[name] = joint_names_.size(); joint_names_.push_back(name); idx = joint_info_.size(); joint_info_.push_back(JointInfo()); } initJoint(idx, max_vel, max_acc, min_pos, max_pos); }