Wiki > TV3D65 Index > TVPhysics
TestCollision
DESCRIPTION
-Checks two physics bodies to see if they occlude each other.
DECLARATION
| VB.NET | TestCollision(iBody1 As Integer , iBody2 As Integer , bFillEvents As Boolean) As Boolean |
| C++ | bool TestCollision(int iBody1 , int iBody2 , bool bFillEvents ) |
PARAMETERS
| NAME | OPTIONAL | DESCRIPTION |
| iBody1 | No | Physics body to check for collision |
| iBody2 | No | Physics body to check for collision |
| bFillEvents | No | If there is a collision, whether or not to add an event to the physics engine |
RETURN VALUE
| Boolean | Whether or not there is a collision. |
EXAMPLES
TIPS
- Please add any notes or tips for this method.