qc.arcade.RigidBody.distanceBetween

Prototype

  • void distanceBetween(source, target)

Parameters

Parameter Type Description
source object The first display object.
target object The second display object.

Return

Type Description
number Distance between two objects.

Description

Get the distance between two objects.