Difference between revisions of "love.physics (简体中文)"
(Move to proper parent) |
m |
||
Line 1: | Line 1: | ||
− | 能模拟2D严格的物体物理特性以现实的方式。这个模块基于[http://www.box2d.org/ Box2D], 并且这个API尽可能严格的符合[http://www.box2d.org/manual.html Box2D API] | + | 能模拟2D严格的物体物理特性以现实的方式。这个模块基于[http://www.box2d.org/ Box2D], 并且这个API尽可能严格的符合[http://www.box2d.org/manual.html Box2D API]。中文翻译连接:[http://blog.sina.com.cn/s/blog_c3cfba710101jwwc.html] |
{{notice|love.physics不是轻量级的, 甚至不是简单易用的. 这是个十吨重的垂子用于重物提升(额。。。锤子。。。提升??) | {{notice|love.physics不是轻量级的, 甚至不是简单易用的. 这是个十吨重的垂子用于重物提升(额。。。锤子。。。提升??) | ||
如果你仅仅需要制造一个角色跳跃过阻碍或者类似,那么请走开,不要看这里。}} | 如果你仅仅需要制造一个角色跳跃过阻碍或者类似,那么请走开,不要看这里。}} |
Revision as of 05:06, 5 April 2016
能模拟2D严格的物体物理特性以现实的方式。这个模块基于Box2D, 并且这个API尽可能严格的符合Box2D API。中文翻译连接:[1]
love.physics不是轻量级的, 甚至不是简单易用的. 这是个十吨重的垂子用于重物提升(额。。。锤子。。。提升??)
如果你仅仅需要制造一个角色跳跃过阻碍或者类似,那么请走开,不要看这里。 |
Contents
类型
Body | Bodies are objects with velocity and position. |
Contact | Contacts are objects created to manage collisions in worlds. |
Joint | Attach multiple bodies together to interact in unique ways. |
Shape | Shapes are objects used to control mass and collisions. |
World | A world is an object that contains all bodies and joints. |
Functions
love.physics.newBody | Creates a new body. |
love.physics.newCircleShape | Creates a new CircleShape. |
love.physics.newDistanceJoint | Creates a DistanceJoint between two bodies. |
love.physics.newGearJoint | Create a GearJoint connecting two Joints. |
love.physics.newMouseJoint | Create a joint between a body and the mouse. |
love.physics.newPolygonShape | Creates a new PolygonShape. |
love.physics.newPrismaticJoint | Creates a PrismaticJoint between two bodies. |
love.physics.newPulleyJoint | Creates a PulleyJoint to join two bodies to each other and the ground. |
love.physics.newRectangleShape | Shorthand for creating rectangular PolygonShapes. |
love.physics.newRevoluteJoint | Creates a pivot joint between two bodies. |
love.physics.newWorld | Creates a new World. |
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info