멀티 DOF 조작 시뮬레이션 - 스트레치 슬링

망원 슬링

INT numChild = groupRope-> getNumChildren (); 
groupRope -> removeChildren ( 0 , numChild); 

 ( INT에서 K = 0 ; K <NUM k 번째 ++ ) 
{ 
    OSG :: ref_ptr <OSG :: 오드> rope1 CreateCylinder = ( 0 , 0 , startPosition입니다, 0.1F ); 
    hookNode = rope1; 
    groupRope ->하는 AddChild (rope1. ) (); 
    startPosition입니다 ++ ; 
}

 

추천

출처www.cnblogs.com/herd/p/11431395.html