Contents

pinned

A Boolean value that indicates whether the physics body’s node is pinned to its parent node.

Declaration

var pinned: Bool { get set }

Mentioned in

Discussion

The default value is false. If true, the node’s position is fixed relative to its parent. The node’s position cannot be changed by actions or physics forces. The node can freely rotate around its position in response to collisions or other forces. If the parent node has a physics body, the two physics bodies are treated as if they are connected with a pin joint.

See Also

Pinning a Physics Body to a Node’s Parent