|
GearBlocks
The GearBlocks Lua scripting API
|
A registry of all part colliders in the scene. More...
Static Public Member Functions | |
| static IPart | GetPart (int colliderInstanceID) |
| Retrieves a part from the instance ID of one of its colliders. | |
A registry of all part colliders in the scene.
|
static |
Retrieves a part from the instance ID of one of its colliders.
| colliderInstanceID | Instance ID of the collider to search with. |
A collider ID is provided by a raycast hit query (see Physics), and can be used to get the part that was hit, for example: