Difference between revisions of "Shape:getBody"

(add note saying it may not be available (it is not in version I use))
(Added missing oldin)
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
Get the body the shape is attached to.
+
{{newin|[[0.7.0]]|070|type=function}}
 +
{{oldin|[[0.8.0]]|080|type=function}}
 +
Get the [[Body]] the shape is attached to.
  
N.B. This function is not available in some versions of LÖVE. You may get an error if you try to use it.
 
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
Line 15: Line 16:
 
[[Category:Functions]]
 
[[Category:Functions]]
 
{{#set:Description=Get the body the shape is attached to.}}
 
{{#set:Description=Get the body the shape is attached to.}}
 +
== Other Languages ==
 +
{{i18n|Shape:getBody}}

Latest revision as of 00:09, 8 January 2014

Available since LÖVE 0.7.0
This function is not supported in earlier versions.
Removed in LÖVE 0.8.0
This function is not supported in that and later versions.

Get the Body the shape is attached to.

Function

Synopsis

body = Shape:getBody( )

Arguments

None.

Returns

Body body
The body the shape is attached to.

See Also

Other Languages