Difference between revisions of "Body:setBullet"

m (1 revision: Importing from potato (again).)
m (included link to other languages)
Line 1: Line 1:
 
 
Set the bullet status of a body.
 
Set the bullet status of a body.
  
Line 21: Line 20:
 
=== Returns ===
 
=== Returns ===
 
Nothing.
 
Nothing.
 +
 
== See Also ==
 
== See Also ==
 
* [[parent::Body]]
 
* [[parent::Body]]
Line 26: Line 26:
 
{{#set:Description=Set the bullet status of a body.
 
{{#set:Description=Set the bullet status of a body.
 
}}
 
}}
 +
 +
== Other Languages ==
 +
{{i18n|Body:setBullet}}

Revision as of 08:46, 30 January 2011

Set 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

Body:setBullet( status )

Arguments

boolean status
The bullet status of the body.

Returns

Nothing.

See Also


Other Languages