KinematicCollision2D Properties |
The KinematicCollision2D type exposes the following members.
| Name | Description | |
|---|---|---|
| Collider | The colliding body. | |
| ColliderId | The colliding body's unique instance ID. See GetInstanceId. | |
| ColliderMetadata | The colliding body's metadata. See Object. | |
| ColliderShape | The colliding body's shape. | |
| ColliderShapeIndex | The colliding shape's index. See CollisionObject2D. | |
| ColliderVelocity | The colliding object's velocity. | |
| DynamicObject |
Gets a new DynamicGodotObject associated with this instance.
(Inherited from Object.) | |
| LocalShape | The moving object's colliding shape. | |
| NativeInstance | (Inherited from Object.) | |
| Normal | The colliding body's shape's normal at the point of collision. | |
| Position | The point of collision, in global coordinates. | |
| Remainder | The moving object's remaining movement vector. | |
| Travel | The distance the moving object traveled before collision. |