Total Pageviews

Friday, May 30, 2014

Type Joint (detail2)

Piston Joint
joint.isLimitEnabled
ថាតើ Joint មានដែលកំនត់ (true)​បើមិនគឺជា (false)
សំរាប់ប្រើជាមួយនឹង Pivot & Piston joints
ចំណាំះ
Wheel Joints នៅក្នុង Box2D 2.2.1 មិនអាចដាក់ limits នៅលើ wheel joints

joint.isMotorEnabled
ប្រើសំរាប់ indicates ថាតើ Piston joint ត្រូវបាន enable ដោយ motor or not វាមិនដូចជា pivot joint, motor driven motion ដែលនឹង linear ដែលនៅជាមួយនឹង specified axis ច្រើនជាង rotational។ ប្រើជាមួយនឹង​ Pivot, Piston & Wheel Joints
សូមមើលកូដះ
if myJoint.isMotorEnabled then
    myJoint.motorSpeed = 10000
end

joint.jointSpeed
ប្រើសំរាប់ read only property ដែលនឹងផ្តល់នៅ speed របស់​ joint នៅក្នុង degree per second។ សំរាប់ប្រើជាមួយនឹង Pivot, Piston & Wheel joints
joint.jointTranslation
ប្រើសំរាប់ Read Only property ដែលផ្តល់នៅ linear translation នៃ joint នៅក្នុង pixels។ សំរាប់ប្រើជាមួយនឹង Piston & Wheel Joints

joint.maxMotorForce
វាជាចំនួនលេខដែលជា Max Motor Force ដែលត្រូវ applied ទៅកាន់ Joint
សំរាប់ប្រើជាមួយនឹង Piston joints
ចំណាំះ wheel joints នៅក្នុង Box2D 2.2.1 ត្រូវប្រើជាមួយនឹង api.type.Joint.maxMotorTorque  

joint.motorSpeed
វាជា Linear speed របស់ motor នៅក្នុង units របស់ pixels ក្នុង per second
សំរាប់ប្រើជាមួយនឹង Pivot, Piston & Wheel joints

joint.motorForce
សំរាប់ប្រើជា read only property នៅ current motor force។ សំរាប់ប្រើជាមួយនឹង Piston joint
ចំណាំះ wheel joints នៅក្នុង Box2D 2.2.1 ត្រូវប្រើ api.Joint.motorTorque

joint.referenceAngle
វាជា read only property ដែលផ្តល់នៅ current angle របស់ joint នៅក្នុង degrees។ សំរាប់ប្រើជាមួយនឹង Pivot joints

Pivot Joint
joint.isLimitEnabled
ប្រើថាតើ joint ត្រូវមានដែនកំនត់ (true)​មិន(false) សំរាប់ប្រើជាមួយនឹង Pivot & Piston joints
ចំណាំះ នៅក្នុង Box2D 2.2.1 មិនអាចដាក់កំនត់លើ wheel joints

joint.isMotorEnabled
ប្រើសំរាប់ indicates ថាតើ piston joint ត្រូវបាន enabled តាមរយះ motor or not។ មិនដូចជា pivot joint, motor-driven motion ដែលនឹង linear ជាមួយនឹង axis rather than rotational។ សំរាប់ប្រើជាមួយនឹង Pivot, Piston & Wheel Joints
សូមមើលកូដះ
If myJoint.isMotorEnabled then
myJoint.motorSpeed = 10000
end


joint.jointAngle
ប្រើជា read only property ដែលផ្តល់នៅ current angle នៃ joint គិតជា degrees។ សំរាប់ប្រើជាមួយនឹង Pivot Joints

joint.jointSpeed
វាជា read only property ដែលផ្តល់នៅ speed of the joint នៅក្នុង degree per second។ សំរាប់ប្រើជាមួយនឹង Pivot, Piston & Wheel joints

joint.maxMotorTorque
ដាក់ឪ្យច្បាស់នៅ maximum motor torque ដែលអាច applied ទៅកាន់ joint
សំរាប់ប្រើជាមួយនឹង Pivot Joints

joint.motorSpeed
វាជា linear speed របស់ motor នៅក្នុង units of pixels per second។ សំរាប់ប្រើជាមួយនឹង Pivot, Piston & Wheel Joints

joint.motorTorque
វាជា read only property ដែលផ្តល់នៅ torque of the joint’s motor។ សំរាប់ប្រើជាមួយនឹង Pivot joints

joint.referenceAngle
ជា read only property ដែលផ្តល់នៅ current angle របស់ ​joint នៅក្នុងដឺក្រេ
សំរាប់ប្រើជាមួយនឹង Pivot joints


No comments:

Post a Comment