Box2D joints: Gear Joints
2009-10-27 00:00:00 来源:WEB开发网核心提示: Line 16: declaring the gear joint variableLine 61: Creation of the gear jointLine 62: Assigning the first body to be attached to the joint… t
Line 16: declaring the gear joint variable
Line 61: Creation of the gear joint
Line 62: Assigning the first body to be attached to the joint… the first gear
Line 63: Assigning the second body, the second gear
Lines 64-65: Assign in the same way the joints of the previously assigned gears
Line 66: Defining the ratio. Changing this value will affect a lot joint behavior
Line 67: Creation of the joint itself
本文示例源代码或素材下载
更多精彩
赞助商链接