# Portal.setOpeningB

Sets the position B of portal opening B.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
portal:setOpeningB( position, rotation, world? )
```

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

**Availability:** Server only

The world will be the same as the object that calls this function.

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `portal` | [Portal](../Game-Script-Environment/Userdata/Portal.md) | The portal. |
| `position` | [Vec3](../Game-Script-Environment/Userdata/Vec3.md) | The portal opening B position. |
| `rotation` | [Quat](../Game-Script-Environment/Userdata/Quat.md) | The portal opening B rotation. |
| `world` *(optional)* | [World](../Game-Script-Environment/Userdata/World.md) | The world to look in (Optional, defaults to world from script context) |
