Difference between revisions of "Body:isBullet"
m (1 revision: Imported docs from potato.) |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | Get the bullet status of a body. | ||
+ | There are two methods to check for body collisions: | ||
+ | |||
+ | * at their location when the world is updated (default) | ||
+ | * using continuous collision detection (CCD) | ||
+ | |||
+ | The default method is efficient, but a body moving very quickly may sometimes jump over another body without producing a collision. A body that is set as a bullet will use CCD. This is less efficient, but is guaranteed not to jump when moving quickly. | ||
+ | |||
+ | |||
+ | Note that static bodies (with zero mass) always use CCD, so your walls will not let a fast moving body pass through even if it is not a bullet. | ||
== Function == | == Function == | ||
Line 10: | Line 20: | ||
=== Returns === | === Returns === | ||
{{param|boolean|status|The bullet status of the body.}} | {{param|boolean|status|The bullet status of the body.}} | ||
+ | |||
== See Also == | == See Also == | ||
* [[parent::Body]] | * [[parent::Body]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
− | {{#set:Description=}} | + | {{#set:Description=Get the bullet status of a body.}} |
+ | {{#set:Since=000}} | ||
+ | |||
+ | == Other Languages == | ||
+ | {{i18n|Body:isBullet}} |
Latest revision as of 10:42, 25 March 2011
Get the bullet status of a body.
There are two methods to check for body collisions:
- at their location when the world is updated (default)
- using continuous collision detection (CCD)
The default method is efficient, but a body moving very quickly may sometimes jump over another body without producing a collision. A body that is set as a bullet will use CCD. This is less efficient, but is guaranteed not to jump when moving quickly.
Note that static bodies (with zero mass) always use CCD, so your walls will not let a fast moving body pass through even if it is not a bullet.
Function
Synopsis
status = Body:isBullet( )
Arguments
None.
Returns
boolean status
- The bullet status of the body.
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