Difference between revisions of "Contact:getNormal"
(add detail) |
m (fixed a typo) |
||
Line 1: | Line 1: | ||
− | |||
== Function == | == Function == | ||
Get the normal vector between two shapes that are in contact. | Get the normal vector between two shapes that are in contact. | ||
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.}} |
Revision as of 03:32, 26 April 2010
Function
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.
Synopsis
nx, ny = Contact:getNormal( )
Arguments
None.