init(rectangleOf:)
Creates a rectangular physics body centered on the owning node’s origin.
Declaration
init(rectangleOf s: CGSize)Parameters
- s:
The size of the rectangle.
Return Value
A new volume-based physics body.
Creates a rectangular physics body centered on the owning node’s origin.
init(rectangleOf s: CGSize)The size of the rectangle.
A new volume-based physics body.