
Collision detection result.
Kind: global class
Vector2CollisionShapeCollisionShapeCreate the collision result.
| Param | Type | Description |
|---|---|---|
| position | Vector2 |
Optional collision position. |
| first | CollisionShape |
First shape in the collision check. |
| second | CollisionShape |
Second shape in the collision check. |
Vector2Collision position, only relevant when there’s a single touching point. For shapes with multiple touching points, this will be null.
Kind: instance property of CollisionTestResult
CollisionShapeFirst collided shape.
Kind: instance property of CollisionTestResult
CollisionShapeSecond collided shape.
Kind: instance property of CollisionTestResult