Aesony! Posted June 6, 2014 Share Posted June 6, 2014 السلام عليكم اهل ام تي اي الاعزاء بس حبيت كيف اقدر اطلع احداثيات الكاميرا وشكراً Link to comment
Tete omar Posted June 6, 2014 Share Posted June 6, 2014 getCameraMatrix ينقل إلى قسم البرمجة Link to comment
Aesony! Posted June 7, 2014 Author Share Posted June 7, 2014 ممكن توضح لانك اما ما فهمت اللي ابيه او انا ما فهمت على الكود Link to comment
Max+ Posted June 7, 2014 Share Posted June 7, 2014 ممكن توضح لانك اما ما فهمت اللي ابيه او انا ما فهمت على الكود شوف الويكي , This function gets the position of the camera and the position of the point it is facing. هاذا الكود يقوم بأحضار احداثيات الكاميرا , ياليت توضح لنا وش تبي بالضبط , عشان نعرف نساعدك , Link to comment
shwaeki Posted June 7, 2014 Share Posted June 7, 2014 # وعليكم السلأم ... setCameraMatrix: This function sets the camera's position and direction. The first three arguments are the point at which the camera lies, the last three are the point the camera faces (or the point it "looks at"). Note: Calling this function takes the camera's focus away from the player and sets the camera in a fixed position and rotation. The camera's focus can be brought back to the player using the setCameraTarget function. Client Syntax bool setCameraMatrix ( float positionX, float positionY, float positionZ [, float lookAtX, float lookAtY, float lookAtZ, float roll = 0, float fov = 70 ] ) # ببساطة فائدة الفنكشن انه يحط لك الكميرا بـ احداثيات محدةة .. كيف اقدر اجيب الاحداثيات او الارقمنات المطلوبة . x, y, z اول 3 ارقمنات معروفة getCameraMatrix الـ 3 اللي بعدها تجيبهم عن طريق فنكشن ويمديك تجيب اول 6 ارقمنات من ذا الفنكشن مثال بسيط كيف تجيب الاحداثيات : ... addCommandHandler( "GetCameraPos", function ( ) local x, y, z, xl, yl, zl = getCameraMatrix( ) if ( x == 0 or y == 0 or z == 0 ) then return end setClipboard(" "..x..", "..y..", "..z..", "..xl..", "..yl..", "..zl.." ") end ) setCameraMatrix وبتنسخ لك الاحداثيات كاملة بس عليك تحطها بـ GetCameraPos تقوم بـ كتابة الأمر Link to comment
Aesony! Posted June 7, 2014 Author Share Posted June 7, 2014 شكراً نجحت معي بس كنت ادور لها بس اكتشفت ان امر النسخ يجي على طول Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now