---
title: bodyB
framework: scenekit
role: symbol
role_heading: Instance Property
path: scenekit/scnphysicsballsocketjoint/bodyb
---

# bodyB

The second physics body connected by the joint.

## Declaration

```swift
var bodyB: SCNPhysicsBody? { get }
```

## Discussion

Discussion This property’s value is nil if the joint was created using the init(body:anchor:) method.

## See Also

### Managing the Characteristics of a Ball and Socket Joint

- [bodyA](scenekit/scnphysicsballsocketjoint/bodya.md)
- [anchorA](scenekit/scnphysicsballsocketjoint/anchora.md)
- [anchorB](scenekit/scnphysicsballsocketjoint/anchorb.md)
