[[Template core/front/global/updateWarning is throwing an error. This theme may be out of date. Run the support tool in the AdminCP to restore the default theme.]]
هدف الخوارزمية هو جعل C7 في مكان target بحيث يجب ان نحافظ على قيمة C1 نفسها و نحافظ على المسافة بين
C1-C2C2-C3C3-C4C4-C5C5-C6C6-C7
و نحافظ ايضا على
موقع C2 بالنسبة لِC1
موقع C3 بالنسبة لِC2
موقع C4 بالنسبة لِC3
موقع C5 بالنسبة لِC4
موقع C6 بالنسبة لِC5
موقع C7 بالنسبة لِC6
the imput of my algortihme isC1,C2,C3,C4,C5,C6,C7, Targetwhere the aim is :-C7 will be in target Position-C1 d'ont change it's position- keep the distance and the local position betweenC7-C6,C6-C5,C3-C2,C2-C1C7-C6= mean the posiiton of the C7 relative to C6 (we must keep it and distance too)SO the algorithm is like that
عملت الخوارزمية لكن عندي مشكلة في النتيجة تحقق كل الشروط الا الشرط الاخير
void maintain_relative_position(Real base_point[3], Real relative_position[3], Real new_point[3]) { /* new_point is an output parameter whose value on return is the point that is relative_position away from base_point. */ int i; for (i = 0; i < 3; i++) { new_point[i] = base_point[i] + relative_position[i]; }}
"b_VectorMagnitude(C7, Target)" is to calculate the distance between Target and C7
تم تعديل بواسطه C++er تعديل التنسيق
تم النشر منذ (معدل)
السلام عليكم
انا بصدد برمجة خوارزمية بحيث
هدف الخوارزمية هو جعل C7 في مكان target بحيث يجب ان نحافظ على قيمة C1 نفسها و نحافظ على المسافة بين
و نحافظ ايضا علىموقع C2 بالنسبة لِC1
موقع C3 بالنسبة لِC2
موقع C4 بالنسبة لِC3
موقع C5 بالنسبة لِC4
موقع C6 بالنسبة لِC5
موقع C7 بالنسبة لِC6
هاهي خوارزميتي ارجو مساعدتي فيها
"b_VectorMagnitude(C7, Target)" is to calculate the distance between Target and C7 تم تعديل بواسطه C++erتعديل التنسيق
شارك هذا الرد
رابط المشاركة
شارك الرد من خلال المواقع ادناه