{{newin|[[0.9.0]]|090|type=function}}
Gets the child indices of the shapes of the two colliding fixtures. For [[ChainShape]]s, an index of 1 is the first edge in the chain.

Used together with [[Fixture:rayCast]] or [[ChainShape:getChildEdge]].

== Function ==
=== Synopsis ===
<source lang="lua">
indexA, indexB = Contact:getChildren( )
</source>
=== Arguments ===
None.
=== Returns ===
{{param|number|indexA|The child index of the first fixture's shape.}}
{{param|number|indexB|The child index of the second fixture's shape.}}

== See Also ==
* [[parent::Contact]]
* [[Fixture:rayCast]]
* [[ChainShape:getChildEdge]]
[[Category:Functions]]
{{#set:Description=Gets the child indices of the shapes of the two colliding fixtures.}}
== Other Languages ==
{{i18n|Contact:getChildren}}