Contents

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.

See Also

Creating a Body from a Shape