WEB开发网
开发学院图形图像Flash Box2D joints: Gear Joints 阅读

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

本文示例源代码或素材下载

上一页  1 2 

Tags:BoxD joints Gear

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接