# Shape.transformPoint

Transform a world point to the local shape transform.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
shape:transformPoint( vector )
```

[Open the full Game reference](../Game-Script-Environment/Userdata/Shape.md#transformpoint)

```lua
local localPos = self.shape:transformPoint( worldPos )
```

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `shape` | [Shape](../Game-Script-Environment/Userdata/Shape.md) | The shape. |
| `vector` | [Vec3](../Game-Script-Environment/Userdata/Vec3.md) | The world point. |

**Returns:**

| Type | Description |
| --- | --- |
| [Vec3](../Game-Script-Environment/Userdata/Vec3.md) | The local point. |
