Collision detection result.
Kind: global class
Vector2
CollisionShape
CollisionShape
Create 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. |
Vector2
Collision 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
CollisionShape
First collided shape.
Kind: instance property of CollisionTestResult
CollisionShape
Second collided shape.
Kind: instance property of CollisionTestResult