Difference between revisions of "Contact:getNormal"
(add detail) |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | |||
− | |||
Get the normal vector between two shapes that are in contact. | Get the normal vector between two shapes that are in contact. | ||
This function returns the coordinates of a unit vector that points from the first shape to the second. | This function returns the coordinates of a unit vector that points from the first shape to the second. | ||
+ | == Function == | ||
=== Synopsis === | === Synopsis === | ||
<source lang="lua"> | <source lang="lua"> | ||
Line 12: | Line 11: | ||
=== Returns === | === Returns === | ||
{{param|number|nx|The x component of the normal vector.}} | {{param|number|nx|The x component of the normal vector.}} | ||
− | {{param|number| | + | {{param|number|ny|The y component of the normal vector.}} |
== See Also == | == See Also == | ||
* [[parent::Contact]] | * [[parent::Contact]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
{{#set:Description=Get the normal vector between two shapes that are in contact.}} | {{#set:Description=Get the normal vector between two shapes that are in contact.}} | ||
+ | {{#set:Since=000}} | ||
+ | == Other Languages == | ||
+ | {{i18n|Contact:getNormal}} |
Latest revision as of 10:57, 25 March 2011
Get the normal vector between two shapes that are in contact.
This function returns the coordinates of a unit vector that points from the first shape to the second.
Function
Synopsis
nx, ny = Contact:getNormal( )
Arguments
None.
Returns
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