init(circleOfRadius:center:)
Creates a circular physics body centered on an arbitrary point.
Declaration
init(circleOfRadius r: CGFloat, center: CGPoint)Parameters
- r:
The radius of the circle.
- center:
The origin of the circle in the owning node’s coordinate system.
Return Value
A new volume-based physics body.